readium / swift-toolkit

A toolkit for ebooks, audiobooks and comics written in Swift
https://readium.org/mobile/
BSD 3-Clause "New" or "Revised" License
223 stars 96 forks source link

When in landscape mode (width > height) the EPubNavigationViewController always starts on the first page in the chapter #367

Closed chrfalch closed 7 months ago

chrfalch commented 7 months ago

Bug Report

After 2.6 a regression was introduced that causes the reader to always start on the first page in the chapter in the initial locator. This is visible on current dev in the test app:

Portrait:

https://github.com/readium/swift-toolkit/assets/875252/b6242302-127b-461b-8771-e9942d9a5be3

Landscape:

https://github.com/readium/swift-toolkit/assets/875252/47dd323b-8880-4411-84bc-b9ced44b3180

I'll provide a PR with a fix for this issue.