This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
A DeviceMotionEventRotationRate
object provides information about the rate at which the device is rotating around all three axes.
Properties
DeviceMotionEventRotationRate.alpha
Read only- The amount of rotation around the Z axis, in degrees per second.
DeviceMotionEventRotationRate.beta
Read only- The amount of rotation around the X axis, in degrees per second.
DeviceMotionEventRotationRate.gamma
Read only- The amount of rotation around the Y axis, in degrees per second.
Specifications
Specification | Status | Comment |
---|---|---|
DeviceOrientation Event Specification The definition of 'DeviceMotionEventRotationRate' in that specification. |
Editor's Draft |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
DeviceMotionEventRotationRate | Chrome No support No | Edge No support ≤18 — 79 | Firefox ? | IE ? | Opera ? | Safari ? | WebView Android
Full support
74
| Chrome Android
Full support
74
| Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android
Full support
11.0
|
alpha | Chrome No support No | Edge No support 12 — 79 | Firefox ? | IE ? | Opera ? | Safari ? | WebView Android Full support ≤37 | Chrome Android Full support 28 | Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android Full support 1.5 |
beta | Chrome No support No | Edge No support 12 — 79 | Firefox ? | IE ? | Opera ? | Safari ? | WebView Android Full support ≤37 | Chrome Android Full support 28 | Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android Full support 1.5 |
gamma | Chrome No support No | Edge No support 12 — 79 | Firefox ? | IE ? | Opera ? | Safari ? | WebView Android Full support ≤37 | Chrome Android Full support 28 | Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android Full support 1.5 |
Secure context required | Chrome No support No | Edge No support No | Firefox ? | IE ? | Opera ? | Safari ? | WebView Android Full support ≤37 | Chrome Android Full support 28 | Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android Full support 1.5 |
Legend
- Full support
- Full support
- No support
- No support
- Compatibility unknown
- Compatibility unknown
- Experimental. Expect behavior to change in the future.
- Experimental. Expect behavior to change in the future.
- Uses a non-standard name.
- Uses a non-standard name.