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

Intersection API for checking when element comes into view #4

Draft
wants to merge 5 commits into
base: scroll
Choose a base branch
from

Conversation

lisa761
Copy link
Owner

@lisa761 lisa761 commented Jun 28, 2020

Closes #3

@lisa761 lisa761 changed the title Intersection api scroll Intersection API for checking when element comes into view Jun 28, 2020
@lisa761 lisa761 linked an issue Jun 28, 2020 that may be closed by this pull request
@lisa761 lisa761 removed a link to an issue Jun 28, 2020
@lisa761 lisa761 linked an issue Jun 28, 2020 that may be closed by this pull request
@lisa761
Copy link
Owner Author

lisa761 commented Jul 8, 2020

The main problem is with the fps, need to find a way to limit the number of callbacks made per second (?)

@lisa761
Copy link
Owner Author

lisa761 commented Jul 8, 2020

Another problem to note is the fact that we cannot control which part is intersecting. This is a problem when dealing with the code which is supposed to load the next set and not the speed set when the last or first row's particular border is visible on the screen. Intersection has a lot of problems. It might actually even be better to go with scrollTop instead, just a bit more calculations. Even the current one does not have a lot of drawbacks per se. At least, not very evident to the user.

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

Successfully merging this pull request may close these issues.

Intersection Observer API
1 participant