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.
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.