DeviceAcceleration.y

Summary

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

Syntax

var yAccel = deviceAcceleration.y;

Return value

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

Specification

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
y
Experimental
Chrome ? Edge Full support 12Firefox ? 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.

See also