Skip to content

Incorrect coordinates on click in scatter plot inside shadow dom #6108

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

Closed
slietar opened this issue Feb 4, 2022 · 3 comments · Fixed by #7357
Closed

Incorrect coordinates on click in scatter plot inside shadow dom #6108

slietar opened this issue Feb 4, 2022 · 3 comments · Fixed by #7357
Assignees
Labels
bug something broken P1 needed for current cycle

Comments

@slietar
Copy link

slietar commented Feb 4, 2022

Hi,

When clicking on a point of a scatter plot inside a shadow dom, the mouse coordinates are shifted ~100px in the x and y directions, which either leads to no click event or a click event on a incorrect point. The bug doesn't occur when hovering however.

Here is a codepen showing the problem: https://codepen.io/0074d9/full/wvPzmLy (left: without shadow dom, right: inside shadow dom). The shift is visible on the tooltip after clicking on a point, as well as on the logged coordinates of the point.

@archmoj
Copy link
Contributor

archmoj commented Feb 7, 2022

Thanks for the report.

@gvwilson
Copy link
Contributor

Hi - we are trying to tidy up the stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for several years, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. Thanks for your help - @gvwilson

@alexcjohnson
Copy link
Collaborator

Still an issue in 3.0 and it's become a blocker for me, I'm going to see if I can fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P1 needed for current cycle
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants