Enable left-clicking on lines and areas again, fix #1231

This commit is contained in:
Pieter Vander Vennet 2023-01-13 03:49:22 +01:00
parent 6392585664
commit 009a1ccba6
2 changed files with 4 additions and 2 deletions

View file

@ -404,7 +404,7 @@ export default class MinimapImplementation extends BaseUIElement implements Mini
if (this._options.lastClickLocation) {
const lastClickLocation = this._options.lastClickLocation
map.on("click", function (e: LeafletMouseEvent) {
map.addEventListener("click", function (e: LeafletMouseEvent) {
if (e.originalEvent["dismissed"]) {
return
}