Some users reported the following unwanted behavior when using the highlight feature: attempting to highlight a section makes the e-reader jump a few pages backwards on some books, while holding the finger down to select the desired text.
I took one of the books that our users reported and opened it with the Readium Sample App. The same unwanted behavior happens there as well.
Since this issue happens only on some books, I opened it with the Sigil EPUB Editor and then opened another EPUB in another window where this issue does not appear. I took a book from the OPDS 2.0 Test Catalog, accessible from the Sample App as a reference book.
The striking difference between them was that the book our users reported the issue on, had that entire chapter as one HTML paragraph (<p> Entire chapter here </p>).
Since I cannot share that book as it is copyrighted, I took the reference book which is in Public Domain and modified Chapter 1 so that the entire chapter is written inside a single paragraph block. With this change, I was able to reproduce the problem.
Bug Report
What happened?
Some users reported the following unwanted behavior when using the highlight feature: attempting to highlight a section makes the e-reader jump a few pages backwards on some books, while holding the finger down to select the desired text.
I took one of the books that our users reported and opened it with the Readium Sample App. The same unwanted behavior happens there as well.
Since this issue happens only on some books, I opened it with the Sigil EPUB Editor and then opened another EPUB in another window where this issue does not appear. I took a book from the OPDS 2.0 Test Catalog, accessible from the Sample App as a reference book.
The striking difference between them was that the book our users reported the issue on, had that entire chapter as one HTML paragraph (
<p> Entire chapter here </p>
).Since I cannot share that book as it is copyrighted, I took the reference book which is in Public Domain and modified Chapter 1 so that the entire chapter is written inside a single paragraph block. With this change, I was able to reproduce the problem.
🎞️ Please see this attached video:
https://github.com/readium/kotlin-toolkit/assets/11408459/b10403c8-2c9c-4d78-be07-4143dc22dad9
Expected behavior
The e-reader should not jump backwards while highlighting text.
How to reproduce?
Environment
Development environment
Testing device
Additional context
I have also seen the issue reported here, but was closed before it was investigated in the sample app.
The same ebook works fine on iOS.