Testing the DeviceOrientation API
Test case: http://jsfiddle.net/TPz2G/3/show/
- Alpha increases when rotating device clockwise
absolute
: true- Alpha is at 0° when device is exactly north
- Alpha increases when rotating device counterclockwise
absolute
: true- Alpha is at 0° when device is approximately north
- Alpha increases when rotating device counterclockwise
absolute
: undefined- Alpha is at 0° when device is exactly west
- Alpha increases when rotating device counterclockwise
absolute
: true- Alpha is at 0° when device is exactly north
- Alpha increases when rotating device counterclockwise
- Alpha is at 0° where the page loads
- Includes
webkitCompassHeading
property, which is at 0° when device is north webkitCompassHeading
increases when rotating device clockwise
- Same as iPhone 5 Mobile Safari