mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Merge branch 'master' of https://github.com/advplyr/audiobookshelf
This commit is contained in:
		
						commit
						0b53f0ebf3
					
				@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user