Skip to content

EPUB Text Reflowing issue on Android #205

@Dima-Android

Description

@Dima-Android

We've started the work on addressing this issue with Abe some time ago on this branch:
https://github.com/zotero/reader/tree/epub-reflowing

I've included the recordings and test results on a tablet of how epub-reflowing branch behaves.
https://github.com/user-attachments/assets/e3aaf528-6545-4069-bf29-18afa946235b
https://github.com/user-attachments/assets/91ed9c62-4cf8-415b-a934-43a7bfdb28a3

I’ve tested the last reader's fix on an Android build that does not have top and bottom bar being overlays, so they still do take space and trigger reflowing. I did it to better showcase how reflowing behaves with much lesser shrinking of the viewport (compared to sidebar).

So what I do is I go to Chapter 2 of the test EPUB and flip 2 pages forward.
This is what happens:
In Portrait mode:

  1. Tapping bottom-middle of the screen triggers top and bottom bar to appear/hide. EPUB reflows and every time this happens the reader scrolls back slightly, until all the way to the beginning of chapter 2 and then don’t scroll anymore.
  2. Sliding in-out left sidebar, which takes significant width in Portrait mode, achieves same scroll-back result.

In Landscape mode:
3. Showing-hiding top-bottom bar behaves like in test 1 for portrait mode
4. Sliding in-out left sidebar doesn’t flip page. Probably because there is so much width, that sidebar fits completely and viewport of reader still have enough of width to reflow into basically the same state.
Rotating the device itself will achieve same result - with each rotation reader slightly scrolls back until the start of the chapter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions