Skip to content

Conversation

@nathan-knight
Copy link

The original behaviour computed the average of the minimum and maximum offsets which worked for centering on items in the middle but would not produce the nearest offset to centered for items at the extreme ends of the list.

This is similar to part of #274 which only changed the calculation for FixedSizeList.

… will calculate a more accurate offset for variable size lists
Object {
"overscanStartIndex": 0,
"overscanStopIndex": 6,
"overscanStopIndex": 5,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It now scrolls to the exact edges instead of slightly offset so there aren't partially visible items anymore which is why these indices shifted

@bvaughn bvaughn closed this Aug 13, 2024
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.

2 participants