Fix mouse pan

pull/680/head
tobspr 4 years ago
parent cceffc1832
commit ad3be750fc

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

Loading…
Cancel
Save