From ff3405ae023f9192eb6de6d22e8d1ab6a7573cdd Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 3 Apr 2013 16:29:28 -0700 Subject: [PATCH] Reapply 92ceae9 --- js/lib/d3.v3.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/js/lib/d3.v3.js b/js/lib/d3.v3.js index 4fe49a2e7..e60a029ad 100644 --- a/js/lib/d3.v3.js +++ b/js/lib/d3.v3.js @@ -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() {