diff --git a/client/components/player/PlayerTrackBar.vue b/client/components/player/PlayerTrackBar.vue index 84f8f729..f96e4f3e 100644 --- a/client/components/player/PlayerTrackBar.vue +++ b/client/components/player/PlayerTrackBar.vue @@ -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