Changes

Jump to: navigation, search

Implementing the Mouse Lock API in Firefox

9 bytes added, 20:42, 30 November 2011
Implementation
# <strike>Save the screenX and screenY position before locking the mouse.</strike> - humph
# <strike>Reset the mouse position back to the original position when unlocking.</strike> - humph
# "When unlocked, the system cursor can exit and re-enter the user agent window. If it does so and the user agent was not the target of operating system mouse move events then the most recent mouse position will be unknown to the user agent and movementX/Y can not be computed and must be set to zero"diogogmt
# Trying to lock a locked element should fire the success callback
# Before locking the mouse check if the element is a DOM element and if it is in the DOM Tree diogogmt
1
edit

Navigation menu