Fix right click on map from propagating

This commit is contained in:
Ansis Brammanis
2013-01-08 18:37:51 -05:00
parent dd26286b2f
commit 57c0504dac
+6 -1
View File
@@ -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')