-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Unexpected scroll behaviour using keys in epub reader #321
Comments
Thank you for your feedback and suggestions. Please note that the author might only respond on weekends, so we kindly ask for your patience and understanding. |
The direction being scrolled can be seen on the top right progress indicator. |
This unexpected scroll behavior bug might be linked to another bug that is hard to reproduce. That bug occurs randomly. When I am reading epub or xhtml files, suppose I am at 10% or at any random%, the reader goes to the top (0%) automatically when I increase or decrease the font size or increase or decrease the page width (zoom). |
Its not related, in recent updates I have tried 2 methods to fix this.
As you can see, text is not similar to image. On changing width of image, its height scales proportionally to width. But that is not the case with text, on changing properties, text will wrap so it doesnt go out of bounds, resulting in unknown height. |
Please check this out. And as you said I could not reproduce this for a large chapter. The below video is from a small chapter. CTO.mp4And I opened the dev tools to see if any error has been recorded there and I found that every time I open an epub, txt or xhtml file, there seems to be some error. |
Its because of gaps between elements. Instead of that certain element, its parent element was selected because of the gap. I have made many guards against it but at the end of day it still depends on the epub file. In your case, I think they are using "gap" instead of "padding on paragraphs", which might be the reason for this behavior. |
If you need to check the structure, here is the EPUB file - Devil Slave (Satan System).zip. |
Cant reproduce. Please check if it is still present. |
It's still present. keys.test.mp4 |
I still cant reproduce it. It could be a keyboard issue, where other key is leaking for few milliseconds. |
Nope checked with different keys and another keyboard, but its still present. W = Scroll up
key.test.mp4 |
Type of installation
Portable (.zip)
Type of reader (if reader related)
epub
Steps to reproduce
When two opposite direction keys are pressed and held down the epub reader keeps scrolling in the upward direction.
✔️ Expected Behavior
Image.Reader.mp4
❌ Actual Behavior
EPUB.And.xhtml.Reader.mp4
The text was updated successfully, but these errors were encountered: