Skip to content

Instantly share code, notes, and snippets.

@mattdsteele
Last active October 30, 2016 12:18
Show Gist options
  • Select an option

  • Save mattdsteele/5615925 to your computer and use it in GitHub Desktop.

Select an option

Save mattdsteele/5615925 to your computer and use it in GitHub Desktop.
Quirks in DeviceOrientation API

Testing the (DeviceOrientation API)[http://dev.w3.org/geo/api/spec-source-orientation]

Tested on Nexus S running Android 4.1.1

  • Chrome Beta 27.0.1453.90 ** Alpha increases when rotating device clockwise ** Alpha is at 0° when device is exactly south
  • Firefox Beta 22.0 ** Alpha increases when rotating device counterclockwise ** Alpha is at 0° when device is approximately south
  • Android Browser 4.1.1 ** Alpha increases when rotating device counterclockwise ** Alpha is at 0° when device is exactly east
  • Opera Mobile 12.1.4 ** Alpha increases when rotating device counterclockwise ** Alpha is at 0° when device is exactly south
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment