-
-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resizing window resets current position #152
Comments
It does try to stay on the same page after resizing, however if you then resize it again, it would try to stay on the page that you were on after—not before—your first resize. For example:
This is Epub.js's normal behavior and I'm not sure if there's anything I can do to improve it. There's a related upstream PR here: futurepress/epub.js#959 Edit: you say that you'd "expect the first line on the left page to stay the same when resized." This is not possible. Because the start of a chapter will always be rendered as a first line on its page, and so the first line of every page would change from every resize. The best one can do is to display the page that includes the first line before the resize. |
A workaround might be store the current reading position only when manually switching pages and so on, not when resizing. So if you do multiple resizes in a row, always try to restore the original reading position and not the reading position that appeared after the previous resize. |
Watch the progress bar at the bottom when window is being resized:
I'd expect the first line on the left page to stay the same when resized.
Foliate 1.5.3
Ubuntu 18.04.2
Used the package from https://github.com/johnfactotum/foliate/releases/tag/1.5.3
The text was updated successfully, but these errors were encountered: