Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken hover on rect #223

Open
verdie-g opened this issue Feb 16, 2023 · 0 comments
Open

Broken hover on rect #223

verdie-g opened this issue Feb 16, 2023 · 0 comments

Comments

@verdie-g
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant