readium / kotlin-toolkit

A toolkit for ebooks, audiobooks and comics written in Kotlin
https://readium.org/kotlin-toolkit
BSD 3-Clause "New" or "Revised" License
180 stars 77 forks source link

[Bug] Incorrect operation of footnotes #535

Open grv333 opened 3 months ago

grv333 commented 3 months ago

Describe the bug

Sometimes, if there is only one footnote in the epub of a book, then clicking on it throws it to the interstitial of the book, and not to the page with the footnote. Tested on Android api 33 on versions of Readium 2.4.0 and latest 3.0.0-beta.1

https://github.com/readium/kotlin-toolkit/assets/22211623/2b301306-5780-49fd-9ddb-13459407104d

How to reproduce?

  1. Launch kotlin-toolkit
  2. Open book https://file.io/YWCbxCoTaf7H
  3. Scroll down to the footnote number 1
  4. Click on the footnote

Readium version

3.0.0-beta.1 and the previous ones

Android API version

33

Additional context

If you open it in other readers, then the footnote works correctly

mickael-menu commented 3 months ago

Thank you for reporting this issue. Note to self: valdshnepy.epub