adtile / Full-Tilt

Other
316 stars 71 forks source link

Fix for chrome to get absolute values by using deviceorientationabsolute event #29

Closed ah2048 closed 5 years ago

ah2048 commented 5 years ago

according to https://developers.google.com/web/updates/2016/03/device-orientation-changes , since chrome 50, "deviceorientation" event returns relative values only and to still get absolute values we must use "deviceorientationabsolute" event. so I have made a very small change to the code to make it works for chrome as well as the other browsers without any breaks.

CLAassistant commented 5 years ago

CLA assistant check
All committers have signed the CLA.