summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-12-08 00:23:26 +0200
committerAlon Levy <alon@pobox.com>2014-12-08 00:23:26 +0200
commitf7fd6b0a85e1e0f9cda8fc5d7ec7a533c719490c (patch)
tree962a5dd3d9db99e7457ca7cf9ded85d767a6b87b
parentdfabcaf081cea2f7fce5c58c625a456d7689ebf2 (diff)
rz_core: prevent cancel of selection when dragging in an over populated graph (i.e. clicking on a link is hard to avoid)
-rw-r--r--src/rz_core.js5
1 files changed, 5 insertions, 0 deletions
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;