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

Fixed hover events in Shadow DOM #6021

Merged
merged 2 commits into from Nov 12, 2021
Merged

Fixed hover events in Shadow DOM #6021

merged 2 commits into from Nov 12, 2021

Conversation

SabineWren
Copy link
Contributor

Fixes #5277
Reverts #5256

The 'target' property changes when bubbling out of Shadow DOM. Unfortunately, that conflicts with event throttling, as the 'target' changes before the throttler's setTimeout calls the hover callback. I added code that captures the original target and passes it to the hover callback.

I'm reverting a previous commit because composedPath isn't needed when the event target is read before the event bubbles outside the shadow root.

@archmoj
Copy link
Contributor

archmoj commented Nov 12, 2021

💃

@archmoj archmoj merged commit 8336f88 into plotly:master Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ploty.js in Shadow DOM hover flicker
2 participants