Changes

Jump to: navigation, search

Implementing the Mouse Lock API in Firefox

213 bytes added, 15:41, 30 November 2011
Implementation
# Trying to lock a locked element should fire the success callback diogogmt
# Before locking the mouse check if the element is a DOM element and if it is in the DOM Tree diogogmt
# <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# 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.
# Restructure Lock method to do most of its operations in a separate thread. diogogmt

Navigation menu