DeviceOrientationEvent.gamma
返回设备旋转时 Y 轴的值;即,多少度,介于之间-90
和90
,通过该装置被接通向左或向右。见方向和运动数据解释的细节。
Syntax
var gamma = orientationEvent.gamma;
Specifications
Specification |
---|
DeviceOrientation Event Specification # ref-for-dom-deviceorientationevent-gamma② |
Browser compatibility
BCD tables only load in the browser