Feature Request: Vertical Continuous Scroll Mode for EPUB

Open
#684 2 comments 2 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
swift
Domain
mobile

Research direction

Start by reading the EPUB scroll-mode handling in EPUBPreferences and how PaginationView lays out spreads. Trace how scrolling within a spread and moving between spreads are currently handled. Done means enabling scroll mode lets readers move vertically through all spreads continuously, without horizontal swiping.

Written by the indexing model from the issue text.

Description

Summary

Add support for vertical continuous scrolling in EPUB scroll mode, allowing users to scroll vertically through all chapters/spreads seamlessly without needing to swipe horizontally to change spreads.

Current Behavior

In EPUB scroll mode (EPUBPreferences.scroll = true):

  • Each spread (chapter/resource) is still contained in a horizontal PaginationView
  • Users can scroll vertically within each spread
  • To move to the next spread, users must swipe horizontally
  • This creates a jarring reading experience with mixed scroll directions
Current: Vertical scroll within spread + Horizontal swipe between spreads
┌─────────────┐
│  Spread 1   │ ← Vertical scroll works here
│             │
│  (scroll ↕) │
└─────────────┘
      ↓ Horizontal swipe required →
┌─────────────┐
│  Spread 2   │
│             │
└─────────────┘

Proposed Behavior

In vertical scroll mode, all spreads should be stacked vertically in PaginationView:

  • Users scroll vertically through all content continuously
  • Spreads transition seamlessly as user scrolls
  • No horizontal swiping required
  • Similar to modern web reading experiences (Medium, Substack, etc.)
Proposed: Pure vertical continuous scroll
┌─────────────┐
│  Spread 1   │
│             │ ↕ Vertical scroll through
│  Spread 2   │   all spreads continuously
│             │
│  Spread 3   │
└─────────────┘

Benefits

  1. Better UX: Natural reading flow without direction changes
  2. Consistency: Matches user expectations from web reading
  3. Accessibility: Easier for users with motor difficulties
  4. Modern: Aligns with contemporary reading apps (Apple Books scroll mode, Kindle app)
Dominant language
Swift
Stars
557
Forks
249
Avg merge
3h 52m
Merged PRs (30d)
19

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from readium/swift-toolkit

All issues in readium/swift-toolkit

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.