Bug: Reader doesn't save properly current progress when certain conditions are met
📝 What happened?
When reading an EPUB book, there where times when it didn't save my current page and revert to another previous page no matter what I did (like close the reader and open it again, close user session and login again, etc).
So I did some testing and I figured out that most of the time (but not exclusively I think) this happened was when I was nearly at the end of a chapter of a book, when I arrived at the next chapter suddenly the reader started saving my progress exactly at the page where I paused my reading.
Also this does not happened when I set the zoom to 100% (default) but when I set it to 160% (which I prefer so it's readable on my tablet) is when this problem presents itself. I use other readers that doesn't have this problem with the zoom but, to be fair, they are not web-based.
Here is a short video of the comparison of how book progress is saved with 100% and 160% zoom: https://youtu.be/Gwxjym_g6ko
And here is a short video showing how this problem happens (apparently) only a few pages back behind the start of a new chapter: https://youtu.be/xz8hdJmADSo
🔄 Steps to Reproduce
I've not test this with all my books, only 2 that I'm reading at this time. So there might be or not books that this issue doesn't happen.
- Set a book to zoom 160% so it opens the reader by default with this setting.
- Set your reader to a page behind a new chapter and wait until the red circle goes away.
- Close your reader
- Open it again
Result: It does not save your current progress exactly, it goes back a few pages. This doesn't happen with zoom set to 100% (default)
✅ Expected Behavior
It should save your progress with the exact page you left the reader in.
💻 Environment
- Booklore Version: v1.12.0
- OS: archlinux (server in a VM, client)
- Browser: Brave, firefox.
- Installation: Docker
- Storage Type: VM disk
Best app ever regardless.