forked from rDrama/rDrama
1
0
Fork 0

fix stalker overflow on mobile

master
Aevann 2023-10-11 19:39:42 +03:00
parent 04910ea23e
commit bd4770c6c3
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ function draw() {
let prevstalker = stalkers[0];
stalker.x = stalker.X += (mouse.x - stalker.X) * speed;
if (screen_width < 768) {
stalker.x = Math.min(stalker.x, screen_width * 0.55);
stalker.x = Math.min(stalker.x, screen_width * 0.5);
}
stalker.y = stalker.Y += (mouse.y - stalker.Y) * speed;
for (let i = count - 1; i > 0; --i) {