Skip to content

fix: align paged epub reader injection across platforms#685

Merged
everpcpc merged 2 commits intomainfrom
codex/epub-paged-js-sync
Mar 22, 2026
Merged

fix: align paged epub reader injection across platforms#685
everpcpc merged 2 commits intomainfrom
codex/epub-paged-js-sync

Conversation

@everpcpc
Copy link
Owner

Problem

macOS paged EPUB chapter transitions had drifted from iOS behavior. Switching chapters could briefly expose unpaginated content, and navigating back to the previous chapter could land on page one before jumping to the last page.

Approach

Align the paged reader injection path around one shared JavaScript builder for CSS and pagination so both platforms use the same layout-stabilization and final-page targeting logic. On macOS, keep the web view hidden until pagination is ready so intermediate layouts never become visible.

Scope

  • Add a shared paged EPUB JavaScript builder used by iOS and macOS scroll pagination
  • Fix macOS chapter transitions to wait for pagination readiness before showing content
  • Resolve previous-chapter navigation directly to the final page on both platforms
  • Bump the build version to 378

Validation

  • make build-macos
  • make build-ios

Share paged EPUB CSS and pagination JavaScript between iOS and macOS to keep behavior in sync.

Also hide macOS chapter transitions until pagination is ready and resolve previous-chapter navigation directly to the final page.
@everpcpc everpcpc merged commit e9de308 into main Mar 22, 2026
3 checks passed
@everpcpc everpcpc deleted the codex/epub-paged-js-sync branch March 22, 2026 14: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