Skip to content

shouldAdjustScrollPositionOnItemSizeChange logic for infinite upwards scroll / messaging UI #1013

Answered by piecyk
GarrisonBates asked this question in Q&A
Discussion options

You must be logged in to vote

This shouldAdjustScrollPositionOnItemSizeChange is there to override the default logic that tries to fix scroll jumping issues. For example, when you jump into the middle of the list and start scrolling upward to the beginning, if the actual row sizes differ significantly from the estimated ones, the scroll height can change, causing the list to jump.

In general, it makes sense to adjust the scroll position when scrolling up most cases, we have a PR to make it default #1002

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@GarrisonBates
Comment options

@piecyk
Comment options

piecyk Jun 17, 2025
Collaborator

@piecyk
Comment options

piecyk Jun 17, 2025
Collaborator

@piecyk
Comment options

piecyk Jun 17, 2025
Collaborator

@HDUysz
Comment options

Answer selected by GarrisonBates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants