DeviceMotionEventAcceleration
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The DeviceMotionEventAcceleration
interface of the Device Orientation Events provides information about the amount of acceleration the device is experiencing along all three axes.
Instance properties
DeviceMotionEventAcceleration.x
Read only-
The amount of acceleration along the X axis.
DeviceMotionEventAcceleration.y
Read only-
The amount of acceleration along the Y axis.
DeviceMotionEventAcceleration.z
Read only-
The amount of acceleration along the Z axis.
Specifications
Specification |
---|
Device Orientation and Motion # devicemotioneventacceleration |
Browser compatibility
Report problems with this compatibility data on GitHubLegend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
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.