Web/API/DeviceMotionEventAcceleration/y

From Get docs


Summary

This read-only property indicates the amount of acceleration that occurred along the Y axis in a DeviceMotionEventAcceleration object.

Syntax

var yAccel = DeviceMotionEventAcceleration.y;

Return value

y
A double indicating the amount of acceleration along the Y axis. See Accelerometer values explained for details.

Specifications

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

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

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

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.


See also