DeviceMotionEvent: rotationRate プロパティ
Baseline
2023
Newly available
Since September 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
DeviceMotionEvent.rotationRate
は読み取り専用プロパティで、端末がそれぞれの軸を中心に回転している秒あたりの角度を返します。
メモ:
ハードウェアがこの情報を提供できない場合、このプロパティは null
を返します。
値
rotationRate
プロパティは読み取り専用のオブジェクトで、端末の各軸に沿った回転速度を記述します。
仕様書
Specification |
---|
Device Orientation and Motion> # dom-devicemotionevent-rotationrate> |
ブラウザーの互換性
Loading…