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

Strange scroll event scrollOffset #69

Open
vallemar opened this issue Sep 11, 2023 · 1 comment
Open

Strange scroll event scrollOffset #69

vallemar opened this issue Sep 11, 2023 · 1 comment

Comments

@vallemar
Copy link
Contributor

When we declare a scroll event in a CollectionView with multiple templates and without rowHeight we have a strange behavior in the scrollOffset data.

If you scroll down there are times when scrollOffset is less than the previous one, which should not happen since if it is a downward scroll it should always increase.

Reproduction repository:https://github.com/vallemar/collectionview-bug
Remove this rowHeight and you will see in the console when you scroll down: DETECTED CHANGE IN SCROLL (it shouldn't appear until you go up the list)

@farfromrefug
Copy link
Member

@vallemar do you see that on iOS/android?
I think it is normal in the sense that the collection view does not know its full content height. It only estimate it with custom row height( would be too slow to compute with like 1000 items).
You see the se behavior with fast scrollers. This is just my guess ! I have not looked at it deeply

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

2 participants