-
Notifications
You must be signed in to change notification settings - Fork 526
IntersectionObserver does not work for SVG elements #223
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
Comments
Are you using the polyfill, or are you using a particular browser's native implementation? |
Good point—I've only tried in Chrome, so it's not polyfilled. Thanks for the response. |
I'm pretty sure Chrome's implementation has problems handling svg. If you don't mind, please file a bug at crbug.com. |
Ok, thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please see the following fiddle ->
https://jsfiddle.net/yk58mnb2/1/
Kindly take a look. Basically, an intersectionEvent for which a
rect
element (inside a SVG) is the targetElement is reportingisIntersecting
asfalse
, where it should be true.Please advise. Thank you!
The text was updated successfully, but these errors were encountered: