Skip to content

Page number should update after font size change (to maintain approximately same place in chapter, and avoid out-of-bounds) #220

@lukestein

Description

@lukestein

Affected Version

0.11.2

Describe the Bug

After changing font size, reader mode tries to stay on the same numbered page rather than the same location in text (or approximating based on the fraction of the way through the current chapter).

This results in moving to a different part of the text, and perhaps an "out of bounds" error if the font was made smaller and reader was previously near end of a chapter.

Expected Behavior

After changing font size, the reader re-indexes the current chapter. Should jump to approximately the same part of the text rather than keeping the literal page number (within chapter) the same.

Relevant Log Output/Screenshots

Before:

image

After shrinking font size (note page number 4/3):

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    readerRelated to the core reader experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions