Close context menu on map interactions
This commit is contained in:
parent
19b6c8e98d
commit
47d0b1e675
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user