Skip to content

Broken hover on rect #223

@verdie-g

Description

@verdie-g

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions