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

5th Sep 2018, 6:36 PM
Dan
Dan - avatar
3 Respuestas
+ 5
Try the orientationchange event.
5th Sep 2018, 6:58 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 5
Probably your device does not support it. (you can also try devicemotion)
6th Sep 2018, 4:24 PM
Valen.H. ~
Valen.H. ~ - avatar
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?
6th Sep 2018, 11:59 AM
Dan
Dan - avatar