DeviceMotionEvent: acceleration プロパティ
Baseline 2023Newly available
Since September 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
acceleration
プロパティは、端末によって記録された加速度の量をメートル毎秒毎秒 (m/s²)単位で返します。
DeviceMotionEvent.accelerationIncludingGravity
とは異なり、加速度値は重力の影響を含みません。
メモ:
ハードウェアが加速度データから重力を除去する方法を知らない場合、DeviceMotionEvent
にこの値が存在しないことがあります。この場合、代わりに DeviceMotionEvent.accelerationIncludingGravity
を使用する必要があります。
値
仕様書
Specification |
---|
Device Orientation and Motion # ref-for-dom-devicemotionevent-acceleration③ |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
acceleration |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full 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.