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

Calculate intersection based on where element would appear rather than where element currently is #88

Open
yang opened this issue Aug 31, 2021 · 0 comments

Comments

@yang
Copy link

yang commented Aug 31, 2021

First, thanks for this wonderful library @morellodev!

Would you consider changing the intersection calculations to use where the element would appear as the subject of the IntersectionObserver, rather than using the element that is being transformed? The former is static and stable, whereas the latter is a moving target and can cause an infinite feedback cycle.

I believe this is the root cause behind a number of other issues on GitHub, including a few that I had spent time digging into (as glitchy behavior), including:

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

No branches or pull requests

1 participant