Skip to content

Commit c455f69

Browse files
authored
Add files via upload
scale down sensitivity
1 parent b5f6fa0 commit c455f69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

marble_webapp/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ document.addEventListener('keyup', e => keys[e.key.toLowerCase()] = false);
2525
if (window.DeviceMotionEvent) {
2626
window.addEventListener('devicemotion', e => {
2727
if (e.accelerationIncludingGravity) {
28-
angleX = e.accelerationIncludingGravity.x;
29-
angleY = -e.accelerationIncludingGravity.y;
28+
angleX = e.accelerationIncludingGravity.x*0.1; // Scale down for sensitivity
29+
angleY = e.accelerationIncludingGravity.y*0.1; // Scale down for sensitivity
3030
}
3131
});
3232
}

0 commit comments

Comments
 (0)