1
0
mirror of https://github.com/advplyr/audiobookshelf.git synced 2025-04-20 01:17:45 +02:00
This commit is contained in:
advplyr 2022-06-25 11:01:06 -05:00
commit 0b53f0ebf3

View File

@ -83,7 +83,9 @@ export default {
var offsetX = e.offsetX
var perc = offsetX / this.trackWidth
var time = perc * this.duration
const baseTime = this.useChapterTrack ? this.currentChapterStart : 0;
const duration = this.useChapterTrack ? this.currentChapterDuration : this.duration;
var time = baseTime + (perc * duration);
if (isNaN(time) || time === null) {
console.error('Invalid time', perc, time)
return