Skip to content

fix: warm epub cover adjacent pages#617

Merged
everpcpc merged 1 commit intomainfrom
codex/warm-epub-cover-adjacent-pages
Mar 6, 2026
Merged

fix: warm epub cover adjacent pages#617
everpcpc merged 1 commit intomainfrom
codex/warm-epub-cover-adjacent-pages

Conversation

@everpcpc
Copy link
Copy Markdown
Owner

@everpcpc everpcpc commented Mar 6, 2026

Problem

EPUB cover mode did not reproduce the first-turn blank issue reliably, but its deck setup still only attached hidden adjacent controllers without explicitly forcing their chapter content to load. That left the same structural risk on the first cover-style transition, especially when the next page lived in a different chapter or needed a fresh web view load.

Approach

Warm adjacent EPUB cover controllers as soon as they are attached to the deck. This keeps the hidden next and previous controllers aligned with the already-visible front controller, so the first cover transition does not depend on lazy content loading.

Scope

  • add a shared helper to warm adjacent EpubPageViewController instances
  • force hidden next and previous cover controllers to load content during initial deck construction
  • apply the same warm-up step after forward and backward cover transitions rebuild adjacent controllers

Testing

  • make format
  • make build-macos

Explicitly warm hidden adjacent EPUB cover controllers during deck setup and after transitions so the next page content is ready before the first cover-style turn.
@everpcpc everpcpc merged commit f1019cc into main Mar 6, 2026
3 checks passed
@everpcpc everpcpc deleted the codex/warm-epub-cover-adjacent-pages branch March 6, 2026 13: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