mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-18 22:48:10 +02:00
Fix right click on map from propagating
This commit is contained in:
@@ -28,7 +28,12 @@ iD.Map = function() {
|
||||
|
||||
surface = supersurface.append('svg')
|
||||
.on('mouseup.reset-transform', resetTransform)
|
||||
.on('touchend.reset-transform', resetTransform);
|
||||
.on('touchend.reset-transform', resetTransform)
|
||||
.on('mousedown.zoom', function() {
|
||||
if (d3.event.button == 2) {
|
||||
d3.event.stopPropagation();
|
||||
}
|
||||
});
|
||||
|
||||
defs = surface.append('defs');
|
||||
defs.append('clipPath')
|
||||
|
||||
Reference in New Issue
Block a user