Skip to content

fix: trigger initial divina scroll preload on iOS#723

Merged
everpcpc merged 1 commit intomainfrom
codex/fix-ios-divina-initial-preload
Apr 11, 2026
Merged

fix: trigger initial divina scroll preload on iOS#723
everpcpc merged 1 commit intomainfrom
codex/fix-ios-divina-initial-preload

Conversation

@everpcpc
Copy link
Copy Markdown
Owner

Problem

On iOS, opening the DIVINA reader in scroll mode on the first page could leave the second page outside the initial preload window. The first manual page turn then had to fetch and decode that page on demand, which showed a brief loading state.

Approach

Trigger the regular page preload pass immediately after the initial scroll position is synchronized in the iOS scroll reader. This keeps the fix on the existing preload architecture and aligns the iOS initialization path with the macOS path that already warms adjacent pages at first presentation.

Scope

  • Update the iOS ScrollPageView initial-position sync path to force the first preload pass once the committed item is known
  • Leave visible-page prioritization and later page-change maintenance behavior unchanged

Validation

  • make format
  • make build-ios

Run the reader page preload pass immediately after the initial scroll position is synchronized in the iOS DIVINA scroll view.

This aligns the iOS initialization path with macOS so the next page is warmed before the first manual page turn, avoiding the transient loading flash on page two.
@everpcpc everpcpc merged commit 9d5c84b into main Apr 11, 2026
3 checks passed
@everpcpc everpcpc deleted the codex/fix-ios-divina-initial-preload branch April 11, 2026 11:24
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