three.js - equirectangular panorama demo with DeviceOrientation controls. photo by Jón Ragnarsson. - equirectangular panorama demo with DeviceOrientation controls. photo by Jón Ragnarsson.
Best Device Orientation API In Web Using Javascript Detecting device orientation. It allows a device to detect its physical orientation with respect to gravity. If you ever The Alpha, Beta, and Gamma Angles. The change in orientation returned by the event is expressed in terms of these values
One example is Device orientation events in HTML5. In principle, any device such as a GPS detector can be made to generate events when something
fired when the device orientation changes. /// . OrientationChanged. } ///