diff options
-rw-r--r-- | html/js/git-deps-graph.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/html/js/git-deps-graph.js b/html/js/git-deps-graph.js index 94398c3..6fdac68 100644 --- a/html/js/git-deps-graph.js +++ b/html/js/git-deps-graph.js @@ -69,6 +69,8 @@ function draw_graph () { // Initialize tooltip var 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); var rect = node.append("rect") .attr("rx", 5).attr("ry", 5); |