diff --git a/game/Camera.js b/game/Camera.js index d1f25e1..005c059 100644 --- a/game/Camera.js +++ b/game/Camera.js @@ -34,7 +34,7 @@ export default class Camera { return false } - const zoomToCoord = center || { + const zoomToCoord = centerCoordViewport || { x: this.width / 2, y: this.height / 2 }