Skip to content

fix(mobile): keep scroll mode moving across chapters#439

Open
codedogQBY wants to merge 1 commit into
mainfrom
codex/fix-mobile-scroll-chapter-boundary
Open

fix(mobile): keep scroll mode moving across chapters#439
codedogQBY wants to merge 1 commit into
mainfrom
codex/fix-mobile-scroll-chapter-boundary

Conversation

@codedogQBY

Copy link
Copy Markdown
Owner

Analysis

Changes

  • Add a scrolled-mode touch path in foliate-js/paginator.js that converts iframe touch movement into paginator container scrolling.
  • When the user keeps dragging at a scrolled boundary and an adjacent section exists, actively call next()/prev() so the reader advances instead of feeling stuck.
  • Preserve the existing paginated swipe/page-turn path unchanged.
  • Rebuild packages/app-expo/assets/reader/reader.html so the mobile app loads the updated paginator bundle.

Verification

  • pnpm --filter @readany/app-expo run build:reader
  • node --check packages/foliate-js/paginator.js
  • git diff --check
  • pnpm --filter @readany/app-expo exec tsc --noEmit
  • Static check that the generated reader.html contains the rebuilt paginator logic

Note: pnpm exec biome check packages/foliate-js/paginator.js is blocked by pre-existing parser/lint diagnostics in that file, including an existing ternary arrow expression near #getRectMapper; this PR did not introduce those diagnostics.

Fixes #361
Fixes #139

@codedogQBY codedogQBY added bug Something isn't working priority:p1 High: important feature broken or major platform/workflow regression area:reader Reader, pagination, scrolling, layout, TOC area:mobile Mobile, tablet, React Native, Android, iOS labels Jun 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:mobile Mobile, tablet, React Native, Android, iOS area:reader Reader, pagination, scrolling, layout, TOC bug Something isn't working priority:p1 High: important feature broken or major platform/workflow regression

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] 翻页模式很卡顿;滑动模式在章节处会卡住,无法滑到后面内容。 [Bug] 翻页问题

1 participant