DeviceOrientationEvent
The DeviceOrientationEvent
object provides web developers with information from the physical orientation of the device running the web page.
Safe to Use
DeviceOrientationEvent
is mostly safe to use.
It’s supported by 89% of global browsers.
Browsers
Version Breakdown
Full Support
Before version 50, Chrome provided absolute values instead of relative values for this event. Developers still needing absolute values may use the deviceorientationabsolute
event.
Full Support
Before version 50, Chrome provided absolute values instead of relative values for this event. Developers still needing absolute values may use the deviceorientationabsolute
event.
Full Support
Full Support
Firefox 3.6, 4, and 5 supported mozOrientation
instead of the standard DeviceOrientationEvent interface.
Full Support
Firefox 3.6, 4, and 5 supported mozOrientation
instead of the standard DeviceOrientationEvent interface.
Full Support
Full Support
Before version 50, Chrome provided absolute values instead of relative values for this event. Developers still needing absolute values may use the deviceorientationabsolute
event.
Full Support
Full Support
No Support
Full Support
Full Support
Before Samsung Internet 5.0, Samsung Internet provided absolute values instead of relative values for this event. Developers still needing absolute values may use the deviceorientationabsolute
event.
Full Support
Before version 50, Chrome provided absolute values instead of relative values for this event. Developers still needing absolute values may use the deviceorientationabsolute
event.
See Also
deviceorientation
DeviceMotionEvent
devicemotion
- Detecting device orientation
- Orientation and motion data explained