DeviceOrientationEvent.gamma
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月.
返回设备旋转时 Y 轴的值;即,多少度,介于之间-90和90,通过该装置被接通向左或向右。见方向和运动数据解释的细节。
Syntax
var gamma = orientationEvent.gamma;
Specifications
| Specification |
|---|
| Device Orientation and Motion> # dom-deviceorientationevent-gamma> |