Device orientation events
Newly available since 2023-09-18
The DeviceMotion
and DeviceOrientation
events report the movement and orientation of the browser's device in physical space. Note that coordinates can differ noticeably between platforms and devices.
Learning resources on MDN
Browser support (view on caniuse.com)
- Chrome 31 Released on 2013-11-12
- Chrome Android 31 Released on 2013-11-14
- Edge 12 Released on 2015-07-29
- Firefox 6 Released on 2011-08-16
- Firefox for Android 6 Released on 2011-08-16
- Safari 17 Released on 2023-09-18
- Safari on iOS 4.2 Released on 2010-11-22