Pointer lock
Limited availability
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)
- Chrome 37 Released on 2014-08-26
- Chrome Android 37 Released on 2014-09-03
- Edge 13 Released on 2015-11-12
- Firefox 50 Released on 2016-11-15
- Firefox for Android 50 Released on 2016-11-15
- Safari 10.1 Released on 2017-03-27
- Safari on iOS ❌ Search for bugs Search for standards position
Baseline availability blocked since March 2017 by Safari on iOS (92 months)
Specifications
- Pointer Lock 2.0, from Web Applications Working Group (W3C).