Repository navigation
Prepare virtual list windows before distant iOS status-bar returns - #261
Merged
Merged
Conversation
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.
Tapping the iOS status bar far down a windowed list lets UIKit animate through unloaded placeholders. Each intermediate viewport can mount another window and request more data, causing blank content and main-thread stalls.
For returns farther than one viewport, request the first window while retaining the current position, then move to the top when the destination window is mounted. Nearby returns keep the standard iOS animation. The bridge forwards the original SwiftUI scroll delegate, restores it on teardown, stops momentum, and lets a new drag cancel a pending return.
Validation: iOS simulator Release build and a standalone native integration check passed (no XCTest execution). The check covers a 2000-row list, destination preparation, visible top content, short-distance behavior, delegate forwarding/veto/restoration and cancellation. Added corresponding Apple backend unit tests. A controlled single-run comparison on the same local graph (31 journals, 664 rows, offset about 94k points) measured a maximum frame gap of 309 ms before versus 133 ms after; intermediate hydration RPCs during return disappeared. These are simulator measurements, not physical iPhone timings.