forked from rDrama/rDrama
fix stalker overflow on mobile
parent
04910ea23e
commit
bd4770c6c3
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue