mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Don't blanket preventDefault for non-primary click events
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user