Skip to content

Commit 76d353d

Browse files
author
Michael Meisel
committed
Capture click events in zoom behavior to ensure they're cancelled.
1 parent 48c4d87 commit 76d353d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/behavior/zoom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ d3.behavior.zoom = function() {
100100
function mouseup() {
101101
if (moved) d3_eventCancel();
102102
w.on("mousemove.zoom", null).on("mouseup.zoom", null);
103-
if (moved && d3.event.target === eventTarget) w.on("click.zoom", click);
103+
if (moved && d3.event.target === eventTarget) w.on("click.zoom", click, true);
104104
}
105105

106106
function click() {

0 commit comments

Comments
 (0)