aboutsummaryrefslogtreecommitdiffstats
path: root/html/js/git-deps-graph.js
diff options
context:
space:
mode:
Diffstat (limited to 'html/js/git-deps-graph.js')
-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);