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

Issues with instant scrollBahaviour and i show add throtlling to the onBlockIntersection function #1

Open
Mood-al opened this issue Apr 25, 2023 · 0 comments

Comments

@Mood-al
Copy link
Owner

Mood-al commented Apr 25, 2023

There are and issue when i set the scrollBahaviour to instant and the problem is on first load or render the onBlockintersection function is passing incorrect index because of the scroll that happens on browser preserve scroll position mechanisim!.

I should add some kind of throtling or awaiting on onBlockIntersection to delay it from firing until the page scroll ends and this will fix many issues and it will be way performant than the current using.

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