From e0d6337a1e3522ebaa7a8732239caaa07b5ba59c Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 23 Apr 2013 15:00:45 -0700 Subject: [PATCH] End zoom if somehow we miss the mouseup (#1326) --- js/lib/d3.v3.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/lib/d3.v3.js b/js/lib/d3.v3.js index b8c1708f8..c275f39ab 100644 --- a/js/lib/d3.v3.js +++ b/js/lib/d3.v3.js @@ -1499,6 +1499,10 @@ d3.behavior.zoom = function() { d3_eventCancel(); function mousemove() { + if (d3.event.which === 0) { + mouseup(); + return; + } moved = 1; translateTo(d3.mouse(target), l); dispatch(event_);