Skip to content

Commit 22f6583

Browse files
authored
Merge pull request #67 from alan-wu/minimap-loaded-fix
Set loaded flag to true once initialised for minimap.
2 parents fbdbe5f + 9d71925 commit 22f6583

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/controls/minimap.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,8 @@ export class MinimapControl
283283
this.#miniMapCanvas = miniMap.getCanvasContainer()
284284
this.#miniMapCanvas.addEventListener('wheel', this.#preventDefault)
285285
this.#miniMapCanvas.addEventListener('mousewheel', this.#preventDefault)
286+
287+
this.#loaded = true
286288
}
287289

288290
#mouseDown(e: maplibregl.MapMouseEvent)

0 commit comments

Comments
 (0)