Changes

Jump to: navigation, search

Implementing the Mouse Lock API in Firefox

26 bytes added, 23:04, 9 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> - '''CloudScorpianCloudScorpion'''- file_defaultUnlock.html
# <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'''

Navigation menu