Fix bugs that caused yaw angle to jump when turning on device orientation control.
Fix bugs that caused yaw angle to jump when turning on device orientation control.

mpetroff/pannellum,psteph801/psteph801.github.io,psteph801/psteph801.github.io,mpetroff/pannellum,psteph801/psteph801.github.io,psteph801/psteph801.github.io,mpetroff/pannellum,mpetroff/pannellum