Testing the DeviceOrientation API
Test case: http://jsfiddle.net/TPz2G/2/show/
- Alpha increases when rotating device clockwise
- Alpha is at 0° when device is exactly south
- Alpha increases when rotating device counterclockwise
- Alpha is at 0° when device is approximately south
- Alpha increases when rotating device counterclockwise
- Alpha is at 0° when device is exactly east
- Alpha increases when rotating device counterclockwise
- Alpha is at 0° when device is exactly south
- Alpha increases when rotating device counterclockwise
- Alpha is at 0° where the page loads
- Includes
webkitCompassHeadingproperty, which is at 0° when device is north webkitCompassHeadingincreases when rotating device clockwise
- Same as Mobile Safari