Open main menu

CDOT Wiki β

Changes

Implementing the Mouse Lock API in Firefox

27 bytes added, 23:55, 9 December 2011
Tests
# <s>"The members movementX and movementY must provide the change in position of the mouse, as if the values of screenX/Y were stored between two subsequent mousemove events eNow and ePrevious and the difference taken movementX = eNow.screenX-ePrevious.screenX"</s> - '''KeyR, JSilver999'''
# <s>"movementX/Y must be valid regardless of mouse lock state"</s> - '''KeyR, JSilver999'''
# <s>"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"</s> - '''moussa1''' - '''test_mousePos.html'''# <s>"When mouse lock is enabled clientX, clientY, screenX, and screenY must hold constant values as if the mouse did not move at all once mouse lock was entered"</s> - '''jbraffoul''' - '''file_constantxy.html'''# <s>"The Mouse Lock API must exit the mouse lock state if the user agent, window, or tab loses focus"</s> - '''drigato''' - '''test_exitMouselockOnLoseFocus.html'''
# Test to make sure that mouse lock only occurs when an element is in full screen mode (not F11 or done via the menus). This includes:
## Switching focus to another window - '''jsiu3'''
# <s>Tests for mouselocklost event</s> - '''stsang''' - '''file_mouselocklost.html'''
====Reviewing Tests====