1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2024-10-27 20:34:29 +00:00

Fix mouse pan

This commit is contained in:
tobspr 2020-09-21 18:17:55 +02:00
parent cceffc1832
commit ad3be750fc

View File

@ -886,10 +886,10 @@ export class Camera extends BasicSerializableObject {
}
if (
mousePos.x <= 0 ||
mousePos.y <= 0 ||
mousePos.x >= this.root.gameWidth ||
mousePos.y >= this.root.gameHeight
mousePos.x < 0 ||
mousePos.y < 0 ||
mousePos.x > this.root.gameWidth ||
mousePos.y > this.root.gameHeight
) {
// Out of screen
return;