diff --git a/src/zoom.js b/src/zoom.js index e36381488..b2a671d10 100644 --- a/src/zoom.js +++ b/src/zoom.js @@ -271,10 +271,13 @@ export default function() { } function mouseupped() { - v.on("mousemove.zoom mouseup.zoom", null); + v.on("mousemove.zoom", null); dragEnable(event.view, g.moved); noevent(); g.end(); + if (g.active === 0) { + v.on("mouseup.zoom", null); + } } }