diff options
| author | Alon Levy <alon@pobox.com> | 2014-12-08 00:23:26 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-12-08 00:23:26 +0200 |
| commit | f7fd6b0a85e1e0f9cda8fc5d7ec7a533c719490c (patch) | |
| tree | 962a5dd3d9db99e7457ca7cf9ded85d767a6b87b /src | |
| parent | dfabcaf081cea2f7fce5c58c625a456d7689ebf2 (diff) | |
rz_core: prevent cancel of selection when dragging in an over populated graph (i.e. clicking on a link is hard to avoid)
Diffstat (limited to 'src')
| -rw-r--r-- | src/rz_core.js | 5 |
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; |
