diff --git a/src/components/map/MapContextMenu.vue b/src/components/map/MapContextMenu.vue index 8debf76..e9d87e9 100644 --- a/src/components/map/MapContextMenu.vue +++ b/src/components/map/MapContextMenu.vue @@ -124,6 +124,9 @@ export default defineComponent({ window.removeEventListener('keyup', handleEsc); }); + props.leaflet.on('movestart', closeContextMenu); + props.leaflet.on('zoomstart', closeContextMenu); + props.leaflet.on('contextmenu', (e: LeafletMouseEvent) => { e.originalEvent.stopImmediatePropagation(); e.originalEvent.preventDefault();