diff --git a/js/id/behavior/drag.js b/js/id/behavior/drag.js index 37c3c5ddc..748a041ba 100644 --- a/js/id/behavior/drag.js +++ b/js/id/behavior/drag.js @@ -59,7 +59,7 @@ iD.behavior.drag = function() { offset = [0, 0]; } - if (touchId === null) d3_eventCancel(); + if (touchId === null) d3.event.stopPropagation(); function point() { var p = target.parentNode || surface; diff --git a/js/lib/d3.v3.js b/js/lib/d3.v3.js index 317ac2af7..8fd4ca883 100644 --- a/js/lib/d3.v3.js +++ b/js/lib/d3.v3.js @@ -1504,8 +1504,7 @@ d3.behavior.zoom = function() { w = d3.select(d3_window).on("mousemove.zoom", mousemove).on("mouseup.zoom", mouseup), l = location(d3.mouse(target)); - d3_window.focus(); - d3_eventCancel(); + d3.event.stopPropagation(); function mousemove() { if (d3.event.which === 0) {