aboutsummaryrefslogtreecommitdiffstats
path: root/html
diff options
context:
space:
mode:
authorAdam Spiers <git@adamspiers.org>2015-01-07 22:59:55 +0000
committerAdam Spiers <git@adamspiers.org>2015-01-08 01:27:46 +0000
commit7bdbb659b733fead1e7a7cd3752baa32935095cc (patch)
tree92c2a30ec2176d926ccffaa171b4b165c665ec22 /html
parent350ad70b5b1dca7962f37a29327b17bf84365ae3 (diff)
downloadgit-deps-7bdbb659b733fead1e7a7cd3752baa32935095cc.tar.gz
fix hiding tip when dragging
For some reason this became necessary after switching to the minified webcola.
Diffstat (limited to 'html')
-rw-r--r--html/js/git-deps-graph.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/html/js/git-deps-graph.js b/html/js/git-deps-graph.js
index 87ff855..a81cd0f 100644
--- a/html/js/git-deps-graph.js
+++ b/html/js/git-deps-graph.js
@@ -74,8 +74,8 @@ function draw_nodes (fg, node) {
// Initialize tooltip
tip = d3.tip().attr('class', 'd3-tip').html(tip_html);
fg.call(tip);
- // Hide tooltip when we start dragging
- d3cola.drag().on('dragstart', tip.hide);
+ hide_tip_on_drag = d3cola.drag().on('dragstart', tip.hide);
+ node.call(hide_tip_on_drag);
var rect = node.append("rect")
.attr("rx", 5).attr("ry", 5);