LeoKlaus / plappa

An Audiobook client for Jellyfin and AudioBookShelf, written in Swift/SwiftUI.
https://plappa.me
159 stars 0 forks source link

[BUG] Back button jumps back one chapter too far #117

Closed mrburns-42 closed 3 weeks ago

mrburns-42 commented 3 weeks ago

Describe the bug Let's assume that we are in chapter x. This chapter has a length of ten minutes, for example. Now I've already listened to six minutes and haven't paid attention. So I press the back button to go back to the beginning of chapter x. Instead, the app jumps back to the beginning of chapter x-1.

To Reproduce Steps to reproduce the behavior:

  1. Go to an audiobook
  2. Start the audiobook and listen some minutes in a chapter
  3. Press the back button
  4. See error

Expected behavior I expect to get back to the beginning of chapter x. However, if I am within, for example, 15 seconds of a chapter, then I expect to jump back to the beginning of chapter x-1.

Screenshots IMG_7428

Environment(please complete the following information):