DeviceOrientationEvent.gamma
Baseline 2023Newly available
Since September 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
返回设备旋转时 Y 轴的值;即,多少度,介于之间-90
和90
,通过该装置被接通向左或向右。见方向和运动数据解释的细节。
Syntax
var gamma = orientationEvent.gamma;
Specifications
Specification |
---|
Device Orientation and Motion # ref-for-dom-deviceorientationevent-gamma② |
Browser compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
gamma |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.