DeviceMotionEventRotationRate
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
设备方向事件的 DeviceMotionEventRotationRate 接口提供有关设备绕三个轴旋转速度的信息。
实例属性
DeviceMotionEventRotationRate.alpha只读-
绕 Z 轴的旋转量(以度/秒为单位)。
DeviceMotionEventRotationRate.beta只读-
绕 X 轴的旋转量(以度/秒为单位)。
DeviceMotionEventRotationRate.gamma只读-
绕 Y 轴的旋转量(以度/秒为单位)。
规范
| Specification |
|---|
| Device Orientation and Motion> # devicemotioneventrotationrate> |
浏览器兼容性
Loading…