DeviceMotionEvent: rotationRate プロパティ
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2023年9月.
DeviceMotionEvent.rotationRate は読み取り専用プロパティで、端末がそれぞれの軸を中心に回転している秒あたりの角度を返します。
メモ:
ハードウェアがこの情報を提供できない場合、このプロパティは null を返します。
値
rotationRate プロパティは読み取り専用のオブジェクトで、端末の各軸に沿った回転速度を記述します。
仕様書
| Specification |
|---|
| Device Orientation and Motion> # dom-devicemotionevent-rotationrate> |