A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/acceleration below:

DeviceMotionEvent: acceleration property - Web APIs

DeviceMotionEvent: acceleration property

Baseline 2023

Newly available

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The acceleration read-only property of the DeviceMotionEvent interface returns the acceleration recorded by the device, in meters per second squared (m/s²). This value does not include the effect of the gravitational force, in contrast to DeviceMotionEvent.accelerationIncludingGravity.

Note: If the hardware does not know how to remove gravity from the acceleration data, this value may not be present in the DeviceMotionEvent. In this situation, you'll need to use DeviceMotionEvent.accelerationIncludingGravity instead.

Value

The acceleration property is an object providing information about acceleration on the three axes in the Device coordinate frame. Each axis is represented with its own property:

x

Represents the acceleration along the x axis

y

Represents the acceleration along the y axis

z

Represents the acceleration along the z axis

Specifications Browser compatibility See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4