Don't show tooltips when the mouse has buttons pressed

This commit is contained in:
Quincy Morgan
2020-05-19 11:11:50 -04:00
parent 02f57eb23a
commit ec73a88e26

View File

@@ -169,6 +169,10 @@ export function uiPopover(klass) {
return;
}
}
// don't show if buttons are pressed, e.g. during click and drag of map
if (d3_event.buttons !== 0) return;
show.apply(this, arguments);
});
anchor.on(_pointerPrefix + 'leave.popover', function() {