Changes

Jump to: navigation, search

Implementing the Mouse Lock API in Firefox

698 bytes added, 14:56, 6 December 2011
Tests
# Make sure code that relies on things happening in asynchronous code gets called in a callback or event handler, not on the next line. For example, if you call navigator.pointer.lock(), you can't check navigator.pointer.islocked() on the next line, you need to use the successCallback/errorCallback. Same for focus or blur calls and events. Actions that trigger something happening in the future often need a callback or event handler.
# Prefer <code>i++;</code> to <code>i+=1;</code>
 
====Test Reviews====
# test_DOMtree.html
# test_LockWhenOutOfFocus.html
# test_MouseEvents.html
# test_TargetOutOfFocus.html
# test_UserAgentIsActive.html
# test_constantxy.html
# <s>test_defaultUnlock.html</s>
# <s>test_doesunlock.html</s> Note: Removed, redundant
# <s>test_doubleLockCallBack.html</s>
# test_exitMouselockOnLoseFocus.html
# test_fullscreen.html
# test_isInstanceofMouselockable.html
# test_limitlessScroll.html
# test_lockLostCallBack.html
# test_mouseLockableHasRequiredMethods.html
# test_mouseLockableHasRequiredMethods.html
# test_mousePos.html
# test_mouselocklost.html
# test_movement.html
# test_navigatorPointer.html
# test_syntheticMouseEvent.html
# test_userPref.html
====Demos, Docs, Other====
4
edits

Navigation menu