mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-02-16 06:19:35 +00:00
123
This commit is contained in:
parent
b044d52af0
commit
89b9925e34
1 changed files with 2 additions and 1 deletions
|
|
@ -394,7 +394,8 @@ class AudiobookPlayer extends AudioPlayer {
|
|||
}
|
||||
return _book!.chapters.firstWhere(
|
||||
(element) {
|
||||
return element.start <= positionInBook && element.end >= positionInBook;
|
||||
return element.start <= positionInBook &&
|
||||
element.end >= positionInBook + offset;
|
||||
},
|
||||
orElse: () => _book!.chapters.first,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue