Skip to content

fix(epubjs): preserve last page at chapter boundaries#202

Open
Fall-of-Fall wants to merge 2 commits into
pacexy:mainfrom
Fall-of-Fall:fix/epubjs-chapter-boundary
Open

fix(epubjs): preserve last page at chapter boundaries#202
Fall-of-Fall wants to merge 2 commits into
pacexy:mainfrom
Fall-of-Fall:fix/epubjs-chapter-boundary

Conversation

@Fall-of-Fall

Copy link
Copy Markdown

Fixes issue#173 where paginated LTR reading could skip the final page of a chapter and move to the next chapter too early.

  • Uses the actual maximum scroll position (scrollWidth - clientWidth) to detect the end of a chapter.
  • Clamps forward navigation to the final valid scroll position before loading the next section.
  • Restores the previous chapter at its final valid scroll position.

@vercel

vercel Bot commented Jul 20, 2026

Copy link
Copy Markdown

@El1x1er is attempting to deploy a commit to the pacexy Team on Vercel.

A member of the Team first needs to authorize it.

@Fall-of-Fall
Fall-of-Fall force-pushed the fix/epubjs-chapter-boundary branch from 3f7b822 to c1d0b5f Compare July 20, 2026 08:12
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