Open main menu

CDOT Wiki β

Changes

Implementing the Mouse Lock API in Firefox

358 bytes added, 14:58, 1 December 2011
Out of Scope Implementation
# "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"
# User agents may prompt for confirmation before locking, this preference may be saved as a content setting (Mentioned in class by humphd, setting would be in about:config ) mjschranz
# Do we need to add a user pref to enable/disable mouse lock? Nice to have, not blocking. - northwind
# "The Mouse Lock API must exit the mouse lock state if the user agent, window, or tab loses focus"
# Clip the mouse so it doesn't leave the locked element with a mouse movement large enough to exceed its bounds. See:
## [http://developer.apple.com/library/mac/#documentation/GraphicsImaging/Reference/Quartz_Services_Ref/Reference/reference.html CGAssociateMouseAndMouseCursorPosition and CGGetLastMouseDelta] on OS X
## [http://www.x.org/archive/X11R6.8.2/doc/XGrabPointer.3.html XGrabPointer] on Linux
# Do we need to add a user pref to enable/disable mouse lock? Nice to have, not blocking. - northwind, mjschranz
See http://mxr.mozilla.org/mozilla-central/source/modules/libpref/src/init/all.js#3379
<pre>
3379 // DOM full-screen API.
3380 pref("full-screen-api.enabled", false);
3381 pref("full-screen-api.allow-trusted-requests-only", true);
3382 pref("full-screen-api.key-input-restricted", true);
3383 pref("full-screen-api.warning.enabled", true);
</pre>
====Tests====