Open main menu

CDOT Wiki β

Changes

Implementing the Mouse Lock API in Firefox

1 byte added, 02:20, 3 December 2011
Tests
# "Movement and button presses of the mouse must not cause the window to lose focus" - '''asahota'''
# "Synthetic mouse events created by application script act the same regardless of lock state" - '''Tentacle'''
# "The unlock method cancels the mouse lock state" - '''abhatnagarabhatnagar1'''
# "[Upon unlock() t]he system mouse cursor must be displayed again and positioned at the same location that it was when mouse lock was entered (the same location that is reported in screenX/Y when the mouse is locked)" - '''dvillase'''
# "When mouse lock is lost or disabled for any reason user agents must fire an event named mouselocklost with its bubble attribute set to true to the mouse lock target element" - '''stsang'''
1
edit