d3-flame-graph
d3-flame-graph copied to clipboard
Broken hover on rect
It looks like the hover on rect is not working properly. On http://martinspier.io/d3-flame-graph/ for example:
Here the mouse is on the rect but the CSS for the hover is not triggered.
Here the mouse is on a side of the rect and the CSS is applied.
I think the reason is that the <foreignObject>
is hiding the <rect>
in the <g>
. A fix could be to swap the foreignObject
with the rect
in the g
.