This commit is contained in:
John Firebaugh
2013-04-03 16:29:28 -07:00
parent 2c68e0efd7
commit ff3405ae02
+7 -1
View File
@@ -1506,7 +1506,13 @@ d3.behavior.zoom = function() {
function mouseup() {
if (moved) d3_eventCancel();
w.on("mousemove.zoom", null).on("mouseup.zoom", null);
if (moved && d3.event.target === eventTarget) w.on("click.zoom", click, true);
if (moved && d3.event.target === eventTarget) {
w.on("click.zoom", click, true);
window.setTimeout(function() {
// Remove click block if click didn't fire
w.on("click.zoom", null);
}, 0);
}
}
function click() {