How to accurately detect the number of reflowable screens in the Current Page #698
Unanswered
ahmetfrkeken
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm working a reading application with reflowable EPUB support.
I'm trying to determine how many actual reflowable screen pages are present in the currently displayed page (locator.locations.position)
The goal is to check whether a specific text (e.g., from a
Text.after
highlight) appears on the same visible screen as the user's current reading position.For example: if I'm on the 16th page (as determined by
publication.positions()
), I would like to calculate how many reflowable screen pages that logical page spans — which could be 1 on a tablet, but 2–3 on a phone with larger font settings.I understand that this is currently not officially supported, but I really need to implement this functionality. I would greatly appreciate any guidance or suggestions you can offer.
Beta Was this translation helpful? Give feedback.
All reactions