Open main menu

CDOT Wiki β

Changes

Implementing the Mouse Lock API in Firefox

89 bytes added, 22:12, 9 December 2011
Tests
# <s>lock(target) expects a DOM element, and takes two optional callbacks: successcallback, failurecallback.</s> - <strong>JSilver999</strong>
# <s>lock() should return immediately and call callbacks when lock succeeds or fails</s> - <strong>JSilver999</strong>
# <s>"Mouse lock must succeed only if the window is in focus" - '''johnno'''</s>- test_UserAgentIsActive.html# <s>"Mouse lock must succeed only if...the user-agent is the active application of the operating system"</s> - '''johnno'''- test_UserAgentIsActive.html# <s>"The target of lock need not be in focus" - '''johnno'''</s>- file_targetOutOfFocus.html
# <s>"Mouse lock must succeed only if the target is in the DOM tree"</s> - '''Anachid'''
# <s>"If the target is removed from the DOM tree after mouse lock is entered then mouse lock will be lost."</s> - '''Anachid'''