Skip to content

Prepare virtual list windows before distant iOS status-bar returns - #261

Merged
tiensonqin merged 1 commit into
mainfrom
fix/virtual-status-bar-scroll
Oct 23, 2026
Merged

tiensonqin merged 1 commit into
mainfrom
fix/virtual-status-bar-scroll

Conversation

@tiensonqin

Copy link
Copy Markdown
Collaborator

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.

@tiensonqin
tiensonqin merged commit 9a8de61 into main Oct 23, 2026
8 checks passed
@tiensonqin
tiensonqin deleted the fix/virtual-status-bar-scroll branch November 23, 2026 08:28
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.

1 participant