Web features explorer

Pointer lock

Limited availability
Tags: api

Provides access to raw mouse movement by locking the target of mouse events to a single element and hiding the mouse cursor. To learn more, see Document: exitPointerLock() method, Document: pointerLockElement property, Document: pointerlockchange event, Document: pointerlockerror event, Element: requestPointerLock() method at MDN.

Compatibility (view on caniuse.com)

Baseline availability blocked since March 2017 by Safari on iOS (92 months)

Specifications