From 333169d18cef4b580282b76dc7ea208138005021 Mon Sep 17 00:00:00 2001 From: PeekabooSteam Date: Mon, 4 Sep 2023 22:57:32 +0100 Subject: [PATCH] Pan up now pans --- client/src/map/map.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/map/map.ts b/client/src/map/map.ts index 89d613a2..34099949 100644 --- a/client/src/map/map.ts +++ b/client/src/map/map.ts @@ -163,7 +163,7 @@ export class Map extends L.Map { /* Pan interval */ this.#panInterval = window.setInterval(() => { - if (this.#panLeft || this.#panDown || this.#panRight || this.#panLeft) + if (this.#panUp || this.#panDown || this.#panRight || this.#panLeft) this.panBy(new L.Point(((this.#panLeft ? -1 : 0) + (this.#panRight ? 1 : 0)) * this.#deafultPanDelta, ((this.#panUp ? -1 : 0) + (this.#panDown ? 1 : 0)) * this.#deafultPanDelta)); }, 20);