forked from rDrama/rDrama
1
0
Fork 0

allow scrolling (why disable it)

master
Aevann 2023-10-11 18:44:00 +03:00
parent 8c2acaa17e
commit 45e3315481
1 changed files with 0 additions and 7 deletions

View File

@ -85,13 +85,6 @@ addEventListener("mousemove", function (e) {
mouse.y = e.pageY;
});
addEventListener("touchstart", function (e) {
event.preventDefault(); // we don't want to scroll
let touch = event.touches[0];
mouse.x = touch.clientX;
mouse.y = touch.clientY;
});
function getRandom(min, max) {
return Math.floor(Math.random() * (max - min + 1) + min);
}