Skip to content

Commit

Permalink
bugfix, prevent re-appearing of the tooltip when move up failed, WIP #…
Browse files Browse the repository at this point in the history
  • Loading branch information
bryan-brancotte committed May 5, 2021
1 parent fb4e286 commit e46becb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/tree-reusable-d3.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e46becb

Please sign in to comment.