Changes

Jump to: navigation, search

Implementing the Mouse Lock API in Firefox

39 bytes added, 15:00, 30 November 2011
Implementation
# <s>MouseLockable DOM Implementation, navigator.pointer ([[Notes on MouseLock DOM Implementation Nov 13, 2011]])</s> - humph
## <strike>[[void lock (in Element target, optional in VoidCallback successCallback, optional in VoidCallback failureCallback);]]</strike> diogogmt, humph
## <strike>void unlock ();### Needs to reset the mouse position back to the original position</strike> humph, diogogmt
## <strike>bool islocked ();</strike> - humph
# <strike>Mouse Lock Platform Implementations</strike> JSilver999, humph
# 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
# Save the screenX and screenY position before locking the mouse.# Reset the mouse position back to the original position when unlocking.
# Restructure Lock method to do most of its operations in a separate thread.

Navigation menu