Repository navigation
Revert "Fix iOS scroll jumps while loading windowed history (#5022)" - #5231
Merged
Merged
Conversation
This reverts commit 9cb923a.
This was referenced Oct 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
#5022 made the timeline wait to insert a fetched older page until scrolling had been idle for 200 ms, with no touch in progress. The wait applies on every platform. Desktop wheel and trackpad scrolling (including macOS momentum) keeps firing
scrollevents, so the prefetched page stays uncommitted for as long as the reader keeps scrolling.isLoadingOlderTimelineRowsstays true until the commit, so readers scrolling up now reach the "Loading older messages…" indicator and stall there. Before #5022, rows were inserted as soon as the response arrived, so the 600 px prefetch margin usually hid the load. Only one load can be pending at a time, so the next page also can't prefetch while the reader keeps scrolling.What changed
Reverts #5022 (9cb923a) in full. One conflict in
useThreadTimelineController.tswas resolved by keeping #5068's removal of theuseRefimport. This brings back the behaviour #5022 fixed: the iOS momentum-scroll jumps and the stale scroll-anchor yank reported in #4793.How you verified
pnpm exec turbo run typecheck lint --filter=@bb/apppasses: 0 errors, 250 existing warnings.apps/app: 447 tests in 48 files pass.🤖 Generated with Claude Code