Skip to content

Fix EPUB page navigation after fullscreen - #3

Merged
omayaro merged 1 commit into
mainfrom
fix/epub-fullscreen-page-nav
Jul 29, 2026
Merged

Fix EPUB page navigation after fullscreen#3
omayaro merged 1 commit into
mainfrom
fix/epub-fullscreen-page-nav

Conversation

@omayaro

@omayaro omayaro commented Jul 29, 2026

Copy link
Copy Markdown
Owner

Summary

  • EPUB page turns now use epub.js next()/prev() so maximize/fullscreen resize no longer leaves adjacent page jumps stuck.
  • Re-dispatch iframe keyboard events (PageUp/Down, arrows, +/-) so shortcuts still work when the EPUB content has focus.
  • Keep the EPUB stage sized through host ResizeObserver + flex fill CSS.

Test plan

  • Open the sample Korean EPUB, maximize/fullscreen the window, press PageDown / click Page Down — page advances
  • With focus inside the EPUB iframe, PageDown still turns pages
  • Quality gate passed
  • scripts/e2e-epub-fullscreen.mts CDP check passed against the sample EPUB
  • scripts/update-release.ps1 refreshed portable artifacts

Made with Cursor

Use rendition next/prev for adjacent EPUB navigation, resize the host safely, and re-dispatch iframe keys so PageDown still works when the content has focus.

Co-authored-by: Cursor <cursoragent@cursor.com>
@omayaro
omayaro merged commit cc2dbd6 into main Jul 29, 2026
1 check passed
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.

2 participants