From e46becb08a86a3d41ca2a43a965522dccd767379 Mon Sep 17 00:00:00 2001 From: Bryan Brancotte Date: Wed, 5 May 2021 16:46:56 +0200 Subject: [PATCH] bugfix, prevent re-appearing of the tooltip when move up failed, WIP #167 --- js/tree-reusable-d3.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/tree-reusable-d3.js b/js/tree-reusable-d3.js index bee1bc9f..598f8234 100644 --- a/js/tree-reusable-d3.js +++ b/js/tree-reusable-d3.js @@ -94,6 +94,8 @@ function interactive_tree() { .attr("class", "tooltip") .style("opacity", 0) .on("mouseover", function(d) { + if(tooltip.style("opacity")==0) + return; tooltip.transition() .duration(200) .style("opacity", 1);