We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5f6fa0 commit c455f69Copy full SHA for c455f69
marble_webapp/app.js
@@ -25,8 +25,8 @@ document.addEventListener('keyup', e => keys[e.key.toLowerCase()] = false);
25
if (window.DeviceMotionEvent) {
26
window.addEventListener('devicemotion', e => {
27
if (e.accelerationIncludingGravity) {
28
- angleX = e.accelerationIncludingGravity.x;
29
- angleY = -e.accelerationIncludingGravity.y;
+ angleX = e.accelerationIncludingGravity.x*0.1; // Scale down for sensitivity
+ angleY = e.accelerationIncludingGravity.y*0.1; // Scale down for sensitivity
30
}
31
});
32
0 commit comments