Don't blanket preventDefault for non-primary click events

This commit is contained in:
Quincy Morgan
2020-06-28 14:12:23 -04:00
parent ea97699dd4
commit e61b752ee1

View File

@@ -57,6 +57,9 @@ export function uiInit(context) {
container
.on('click.ui', function() {
// we're only concerned with the primary mouse button
if (d3_event.button !== 0) return;
if (!d3_event.composedPath) return;
// some targets have default click events we don't want to override