Close the edit menu if a pointer goes down in the map

This commit is contained in:
Quincy Morgan
2020-06-30 12:07:06 -04:00
parent cf362cdcac
commit f08a9fdfb4

View File

@@ -95,6 +95,8 @@ export function behaviorSelect(context) {
if (d3_event.buttons && d3_event.buttons !== 1) return;
context.ui().closeEditMenu();
_longPressTimeout = window.setTimeout(didLongPress, 500, id, 'longdown-' + (d3_event.pointerType || 'mouse'));
_downPointers[id] = {