0
deviceorientation on sololearn playground supported?
I wanted to use the deviceorientation event. When I updated sololearn it worked for a small amount of time and now it does not work. The console says null. Whats the problem? https://code.sololearn.com/W2qpBoR6c9CL/?ref=app
3 Answers
+ 5
Try the orientationchange event.
+ 5
Probably your device does not support it.
(you can also try devicemotion)
0
but I think it shows only the values 180, 90 and -90. I need every degree. Is there no opportunity to get every degree when the deviceorientation changes?