d3-flame-graph icon indicating copy to clipboard operation
d3-flame-graph copied to clipboard

Broken hover on rect

Open verdie-g opened this issue 2 years ago • 1 comments

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. image

Here the mouse is on a side of the rect and the CSS is applied. image

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.

verdie-g avatar Feb 16 '23 13:02 verdie-g