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

Remove unnecessary scroll offset check when scrolling stops #226

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

inokawa
Copy link
Owner

@inokawa inokawa commented Oct 26, 2023

fix #225

This PR will remove scrollTop/scrollLeft check when scrolling stops, which causes #225 .

This logic is from very early implementation before initial release. In those days scroll event was throttled, but not in today so we can safely remove it.

This PR also fixes a bug onScrollStopped callback was unintendedly called when WVList was in the outside of window.

@inokawa inokawa marked this pull request as ready for review October 26, 2023 12:13
@inokawa inokawa merged commit 87b45b3 into main Oct 26, 2023
2 checks passed
@inokawa inokawa deleted the scroll-on-scroll-stop branch October 26, 2023 12:19
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.

Hiding virtual list during momentum scroll causes the virtual list to be blanked out when returning to it
1 participant