Changes

Jump to: navigation, search

Implementing the Mouse Lock API in Firefox

7 bytes added, 11:43, 3 December 2011
Tests
# <s>"If the mouse is already locked to the same element, a repeated call to lock will succeed and the successCallback called"</s> - '''jboelen'''
# <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'''
# "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" - '''rhung'''
# "Events that require the concept of a mouse cursor must not be dispatched (for example: mouseover, mouseout)" - '''rhung'''
1
edit

Navigation menu