Changes

Jump to: navigation, search

Implementing the Mouse Lock API in Firefox

22 bytes added, 12:30, 29 November 2011
High-Level Mouse Lock Implementation Tasks
# "User agents may prompt for confirmation before locking, this preference may be saved as a content setting" How to deal with this? What UI do we use? See also, "Repeated escapes of mouse lock can signal user agent to not re-lock the mouse without more specific user intent gesture, e.g. similar to how Chrome suppresses repeated alert() calls"
# Tests, tests, tests. We need tests for all aspects of the spec. The central repo with all the tests are located [https://github.com/rhung/mozilla-central/tree/mouselock-tests here]. List tests we need below:
## "there is no limit to how far movement can go...not limited by screen boundaries" -- mouse lock should mean infinite movement in the X and Y axes...There will be no limit to movementX/Y values if the mouse is continuously moved in a single direction" and "The concept of the mouse cursor will have been removed, and it will not move off the window or be clamped by a screen edge" - '''hchun'''## "no mouse cursor is displayed" -- mouse cursor should be hidden while locked - '''dvillase'''
## navigator.pointer (readonly) is a MouseLockable - <strong>abhatnagar</strong>
## MouseLockable has lock(), unlock(), islocked() - <strong>abhatnagar</strong>
1
edit

Navigation menu