Improve position restoration after changing the font size

Open
#645 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@mickael-menu is already working on this.

Since Jul 17, 2026.

  • #869 by @mickael-menu — open

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
ios, swift
Domain
mobile

Research direction

Reproduce the reported sequence in an ePub: change text size from 100% to 200%, move forward one or two pages, then return to 100%. Start by tracing the font-size change and reading-position restoration flow; done means changing the size restores the reader to the position the user was reading before the change.

Written by the indexing model from the issue text.

Description

Describe the bug

When changing text size Readium doesn't keep the position and a user lose the page that I was before causing them to go back or forth to find it again.

How to reproduce?
  • Open an ePub
  • Change the text size (e.g. on page 5) to 200%
  • Text change and stays on page 5
  • Navigate to next page or two pages (page 6 or 7)
  • Change text size back to 100%
  • It stays in the page 6 or 7 and I lose where I was before
Readium version

3.4.0

OS version

iOS 17 to 26

Testing device

iPhone 12 mini

Environment
macOS: 26.0
platform: arm64
Xcode 26.0
Build version 17A324
Additional context

I did some research that says that it should work out of the box for epubs, but I couldn't find any that works. Is that statement true?

Thank you

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.