End zoom if somehow we miss the mouseup (#1326)

This commit is contained in:
John Firebaugh
2013-04-23 15:00:45 -07:00
parent 2d62a78ac9
commit e0d6337a1e
+4
View File
@@ -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_);