flow icon indicating copy to clipboard operation
flow copied to clipboard

feat(reader): Implement chapter-limited smooth Scroll View

Open pratyush3124 opened this issue 6 months ago • 2 comments

This commit introduces a refined "Scroll" page view mode that limits vertical scrolling to the current chapter. This addresses the previous issue where continuous scroll modes would either be choppy or scroll across the entire book.

Key changes include:

  • Configured EPUB.js rendition with 'scrolled' flow and removed the explicit 'continuous' manager to enable chapter-limited scrolling.
  • Modified keyboard event handling in Reader.tsx to allow explicit chapter navigation (ArrowLeft/Right) when in scroll mode.
  • Adjusted wheel event handling in Reader.tsx to prevent automatic chapter transitions, ensuring users can scroll freely within the current chapter.

These changes provide a fluid and responsive scrolling experience while maintaining clear chapter boundaries and user control over navigation.

pratyush3124 avatar Jun 08 '25 12:06 pratyush3124

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

A member of the Team first needs to authorize it.

vercel[bot] avatar Jun 08 '25 12:06 vercel[bot]

#168 & #167 are addressed here

pratyush3124 avatar Jun 08 '25 12:06 pratyush3124