Skip to content

Fix the contentOffsetAdjustment when overscrolling#154

Merged
bryankeller merged 2 commits intomasterfrom
bk/fix-overscroll-self-size-contentOffsetAdjustment
Feb 13, 2026
Merged

Fix the contentOffsetAdjustment when overscrolling#154
bryankeller merged 2 commits intomasterfrom
bk/fix-overscroll-self-size-contentOffsetAdjustment

Conversation

@bryankeller
Copy link
Contributor

Details

This fixes an issue that could cause jumpy scrolling when rubber-banding / over-scrolling at the top or bottom of the collection view. While over-scrolling, if an item self-sizes due to its visibility changing, we need to account for the over-scroll amount when calculating a contentOffsetAdjustment. Before this change, we'd always calculate that offset without taking into account the over-scroll, causing the collection view to snap to its min / max content offset (even though you were beyond that).

Review

@brynbodayle

@bryankeller bryankeller added the bug Something isn't working label Feb 12, 2026
@bryankeller bryankeller merged commit c940309 into master Feb 13, 2026
1 check passed
@bryankeller bryankeller deleted the bk/fix-overscroll-self-size-contentOffsetAdjustment branch February 13, 2026 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants