mrdoob/three.js — pull request #4558 by richtr (2014-03-11 09:42:41+00:00)
Title: Update W3C-based DeviceOrientationControls.js + Demo

- Convert from Euler angles to using rotation matrix to avoid gimbal lock.
- Handle common screen orientation changes through transformation matrices.
- General clean-up of code.