Skip to content

Commit

Permalink
Don't capture mouse within tip labels
Browse files Browse the repository at this point in the history
Fixes a bug whereby branch hover/click-events didn't work because the
tip label captured the mouse, which is very common on tangletrees
(because the text starts to the right of the tip and thus always
obscures branches). Note that the branch labels already had this setting.
  • Loading branch information
jameshadfield committed Jun 6, 2024
1 parent ef18c1f commit bcf0b9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/tree/phyloTree/labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const updateTipLabels = function updateTipLabels(dt) {
.text((d) => tLFunc(d))
.attr("class", "tipLabel")
.style("font-size", fontSize.toString() + "px")
.style("pointer-events", "none")
.style("visibility", (d) => (d.visibility === NODE_VISIBLE ? "visible" : "hidden"));
}, dt);
}
Expand Down

0 comments on commit bcf0b9f

Please sign in to comment.