-
Notifications
You must be signed in to change notification settings - Fork 523
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
rootMargin only works on initial load #157
Comments
Can you clarify whether this is for the polyfill or the native implementation (or both)? |
@philipwalton I am not sure. The issue was in Chrome, so I assume it would have used the native one, but I am including the polyfill. |
Can you please verify that this is a bug in the native implementation by trying it without including the polyfill? If it's a bug in the native implementation, then please file a bug (with a reproduction) at crbug.com. |
The options are read only, according to this stackoverflow post: |
I am trying to use
rootMargin: 2000px 2000px 2000px 2000px
to load content that is off of the screen, so a few results above and below the containing div should be loaded. This works on initial load, and there are several loaded in results, but when I scroll back up everything has disappeared, so it seems that the rootMargin only works on initial load. I am showing and hiding my content doing something like this:Is
entry.intersectionRatio > 0
what I want here? If so, something seems to be not working correctly.The text was updated successfully, but these errors were encountered: