Changes

Jump to: navigation, search

Implementing the Mouse Lock API in Firefox

14 bytes added, 20:49, 3 December 2011
Tests
# <s>"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"</s> - '''jboelen'''
# <s>"The Mouse Lock API must provide a default system action to unlock the mouse" namely ESC.</s> - '''CloudScorpian'''
# <s>"Once in the locked state the user agent must fire all relevant user generated MouseEvent events (for example: mousemove, mousedown, mouseup, click, wheel)[DOM-LEVEL-3-CORE] to the target of mouse lock, and not fire mouse events to other elements" </s> - '''rhung'''# <s>"Events that require the concept of a mouse cursor must not be dispatched (for example: mouseover, mouseout)" </s> - '''rhung'''
# "Movement and button presses of the mouse must not cause the window to lose focus" - '''asahota'''
# <s>"Synthetic mouse events created by application script act the same regardless of lock state"</s> - '''Tentacle'''
1
edit

Navigation menu