Changes

Jump to: navigation, search

Implementing the Mouse Lock API in Firefox

14 bytes removed, 14:13, 1 December 2011
Tests
# navigator.pointer (readonly) is a MouseLockable - <strong>abhatnagar</strong>
# MouseLockable has lock(), unlock(), islocked() - <strong>abhatnagar</strong>
# <s>islocked() returns true if mouse is locked, false if not locked</s> - <strong>JSilver999</strong># <s>lock(target) expects a DOM element, and takes two optional callbacks: successcallback, failurecallback.</s> - <strong>JSilver999</strong>
# lock() should return immediately and call callbacks when lock succeeds or fails - <strong>JSilver999</strong>
# "Mouse lock must succeed only if the window is in focus" - '''johnno'''
1
edit

Navigation menu