From f7fd6b0a85e1e0f9cda8fc5d7ec7a533c719490c Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Mon, 8 Dec 2014 00:23:26 +0200 Subject: rz_core: prevent cancel of selection when dragging in an over populated graph (i.e. clicking on a link is hard to avoid) --- src/rz_core.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rz_core.js b/src/rz_core.js index 1e8507b1..4dfda95b 100644 --- a/src/rz_core.js +++ b/src/rz_core.js @@ -356,6 +356,11 @@ function update_view__graph(no_relayout) { link_g.append("path") .attr("class", "ghostlink") .on("click", function(d, i) { + if (zoomInProgress) { + // don't disable zoomInProgress, it will be disabled by the svg_click_handler + // after this events bubbles to the svg element + return; + } var that = this, src = this.link.__src, dst = this.link.__dst; -- cgit v1.3.1