1
edit
Changes
m
→High-Level Mouse Lock Implementation Tasks
## lock(target) expects a DOM element, and takes two optional callbacks: successcallback, failurecallback.
## lock() should return immediately and call callbacks when lock succeeds or fails
## "Mouse lock must succeed only if the window is in focus" - <strong>mjschranz</strong>
## "Mouse lock must succeed only if...the user-agent is the active application of the operating system"
## "The target of lock need not be in focus"