mirror of
https://github.com/tobspr-games/shapez.io.git
synced 2026-01-14 05:11:23 -08:00
Fix mouse pan
This commit is contained in:
parent
cceffc1832
commit
ad3be750fc
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue