mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-16 20:35:00 +02:00
fix: use chapter duration when seeking on track bar
This commit is contained in:
parent
93d82b973e
commit
067006f406
1 changed files with 2 additions and 1 deletions
|
@ -83,7 +83,8 @@ export default {
|
|||
|
||||
var offsetX = e.offsetX
|
||||
var perc = offsetX / this.trackWidth
|
||||
var time = perc * this.duration
|
||||
const duration = this.useChapterTrack ? this.currentChapterDuration : this.duration
|
||||
var time = perc * duration
|
||||
if (isNaN(time) || time === null) {
|
||||
console.error('Invalid time', perc, time)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue