Web/API/DeviceMotionEventAcceleration

From Get docs

This is an experimental technologyCheck the Browser compatibility table carefully before using this in production.


A DeviceMotionEventAcceleration object provides information about the amount of acceleration the device is experiencing along all three axes.

Properties

DeviceMotionEventAcceleration.x Read only
The amount of acceleration along the X axis. Read only.
DeviceMotionEventAcceleration.y Read only
The amount of acceleration along the Y axis. Read only.
DeviceMotionEventAcceleration.z Read only
The amount of acceleration along the Z axis. Read only.

Specifications

Specification Status Comment
DeviceOrientation Event SpecificationThe definition of 'DeviceMotionEventAcceleration' in that specification. Editor's Draft Initial definition

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet

DeviceMotionEventAcceleration

Experimental'

Chrome

No support No

Edge

No support 12 — 79

Firefox

?

IE

No support No

Opera

?

Safari

?

WebView Android Full support 74


Full support 74


No support ≤37 — 73

Alternate Name'

Alternate Name' Uses the non-standard name: DeviceAcceleration

Chrome Android Full support 74


Full support 74


No support 28 — 73

Alternate Name'

Alternate Name' Uses the non-standard name: DeviceAcceleration

Firefox Android

?

Opera Android

?

Safari iOS

?

Samsung Internet Android Full support 11.0


Full support 11.0


No support 1.5 — 11.0

Alternate Name'

Alternate Name' Uses the non-standard name: DeviceAcceleration

Secure context required

Experimental'

Chrome

No support No

Edge

No support No

Firefox

?

IE

No support No

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

x

Experimental'

Chrome

No support No

Edge

No support 12 — 79

Firefox

?

IE

No support No

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

y

Experimental'

Chrome

No support No

Edge

No support 12 — 79

Firefox

?

IE

No support No

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

z

Experimental'

Chrome

No support No

Edge

No support 12 — 79

Firefox

?

IE

No support No

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.