Changes

Jump to: navigation, search

Implementing the Mouse Lock API in Firefox

13 bytes added, 20:50, 30 November 2011
no edit summary
# <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 CloudScorpion
# Before locking the mouse check if the element is a DOM element and if it is in the DOM Tree diogogmt
# Fix accurateness of mouse positioning on unlock() (should be the same point as when lock() was called). Currently works, but is offset. See nsEventStateManager::SetMouseLock. - JSilver999

Navigation menu