This property indicates the rate of rotation around the Z axis -- in degrees per second -- in a DeviceRotationRate
object.
Syntax
var alpha = deviceRotationRate.alpha;
This property is read-only.
Return value
alpha
- A
double
indicating the rate of rotation around the Z axis, in degrees per second. See Accelerometer values explained for details.
Specifications
Specification | Status | Comment |
---|---|---|
DeviceOrientation Event Specification | Editor's Draft | Initial specification. |
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.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
alpha | Chrome ? | Edge Full support 12 | Firefox ? | IE ? | Opera ? | Safari ? | WebView Android ? | Chrome Android ? | Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android ? |
Legend
- Full support
- Full support
- Compatibility unknown
- Compatibility unknown
- Experimental. Expect behavior to change in the future.
- Experimental. Expect behavior to change in the future.