Open main menu

CDOT Wiki β

Changes

Implementing the Mouse Lock API in Firefox

34 bytes added, 00:55, 3 December 2011
Tests
# "Mouse lock must succeed only if...the user-agent is the active application of the operating system" - '''johnno'''
# "The target of lock need not be in focus" - '''johnno'''
# <strike>"Mouse lock must succeed only if the target is in the DOM tree" </strike> - '''Anachid'''# <strike>"If the target is removed from the DOM tree after mouse lock is entered then mouse lock will be lost." </strike> - '''Anachid'''
# "If the mouse is already locked to the same element, a repeated call to lock will succeed and the successCallback called" - '''jboelen'''
# "If another element is locked [and lock() is called] a user agent must transfer the mouse lock to the new target and call the mouselocklost callback for the previous target" - '''jboelen'''
1
edit