DeviceOrientationEvent: gamma property
Device Orientation Events
Device Orientation Events
The **`gamma`** read-only property of the DeviceOrientationEvent interface returns the rotation of the device around the Y axis; that is, the number of degrees,
ranged between `-90` and `90`, by which the device is tilted left
or right.
See [Orientation and motion data explained](/docs/Web/API/Device_orientation_events/Orientation_and_motion_data_explained) for details.
## Value
A number.
## Specifications
## Browser compatibility
## See also
- Detecting device orientation
- Orientation and motion data explained
- deviceorientation event
- deviceorientationabsolute event
source: MDN Web Docs mirror · page
Cite this
"DeviceOrientationEvent: gamma property". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/gamma JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy