Merge pull request #373 from Pax1601/372-pan-up-doesnt-work-via-keyboard

Pan up now pans
This commit is contained in:
Pax1601
2023-09-05 09:42:55 +02:00
committed by GitHub

View File

@@ -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);