Logic flaw in the chapter progress bar
Steps to reproduce
- Inject this js (copy, paste)
chapter = document.querySelector('chapter');
chapter.innerText = chapter.outerHTML
- Go to a chapter and open it
- Move chapter progress using the chapter progress bar
Another way to show the logic flaw if you:
- Empty your css
- Set font size to 15 using Lnreader related setting
- Go to a chapter, scroll until 50% read progress and exit it
- Set font size to 30 using Lnreader related setting
- Go to the chapter previously menzioned and watch the resumed read progress. It will be roughly 15%
Expected behavior
Precise movement with the progress bar when used to move in the chapter without "after-click-displacement"
Actual behavior
https://github.com/LNReader/lnreader/assets/75091899/b0179035-875e-4484-b931-083277f68e2c
- If I try to go to 50% the bar will show 65% so it is not precise
- Sometimes when clicked on, it will not "teleport" to the progress indicated remaining unmoving (for example click on 70% zone but remaining on the bottom of the chapter)
LNReader version
1.1.18
Android version
Android 8
Device
Huawei p8 lite 2017
Other details
~~I am not sure why. Might be the fact that the content is the same but the space occupied by the paragraphs is not actually displayed.~~ I guess it is because the chapter progress logic is not actually saved as a %. In any case the chapter height scrollable doesnt match the chapter progress showed.
Acknowledgements
- [X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
- [X] I have written a short but informative title.
- [X] If this is an issue with a source, I should be opening an issue in the sources repository.
- [X] I have updated the app to version 1.1.18.
- [X] I will fill out all of the requested information in this form.
Can you guide me on customizing the reader with CSS? I'm encountering a novel where the "?" symbol appears randomly in the text.
Fixed in beta