Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
gamma

gamma property

The amount of rotation (in the range of [-90, 90)) around the Y axis, where Y is in the plane of the screen, and positive towards the top of the screen.

This property is read-only.

IE11

 

Syntax

JavaScript
ptr = object.gamma

 

Property values

Type: double

Standards information

Remarks

A value of zero indicates that the host device is not horizontally tilted in any way from left to right

See also

DeviceOrientationEvent

 

 

Show:
© 2015 Microsoft