diff options
author | Adam Spiers <git@adamspiers.org> | 2015-01-07 16:35:38 +0000 |
---|---|---|
committer | Adam Spiers <git@adamspiers.org> | 2015-01-08 01:27:46 +0000 |
commit | 29bb7387443587dfbfd67b3f718a98eae5eb8036 (patch) | |
tree | 2d949031636bd3c455cf0fe47b5b110908a38697 /html/js/git-deps-graph.js | |
parent | c1e1d94f226c00679ef03a81bf7c20c1fbd0f534 (diff) | |
download | git-deps-29bb7387443587dfbfd67b3f718a98eae5eb8036.tar.gz |
hide tooltip when we start dragging
Diffstat (limited to 'html/js/git-deps-graph.js')
-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); |