From 29bb7387443587dfbfd67b3f718a98eae5eb8036 Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Wed, 7 Jan 2015 16:35:38 +0000 Subject: hide tooltip when we start dragging --- html/js/git-deps-graph.js | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit