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.
Learning resources on MDN
Browser support (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 ❌
Baseline availability blocked since March 2017 by Safari on iOS (93 months)
Specifications
- Pointer Lock 2.0, from Web Applications Working Group (W3C).