From e837e5f78035bec49991123be5ae5afaaac5bf45 Mon Sep 17 00:00:00 2001 From: Alex Maras Date: Sat, 25 Jun 2022 23:58:55 +0800 Subject: [PATCH] fix: reuse existing variable --- client/components/player/PlayerTrackBar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/components/player/PlayerTrackBar.vue b/client/components/player/PlayerTrackBar.vue index e5fef21c..8eaf7690 100644 --- a/client/components/player/PlayerTrackBar.vue +++ b/client/components/player/PlayerTrackBar.vue @@ -146,7 +146,7 @@ export default { const baseTime = this.useChapterTrack ? this.currentChapterStart : 0; const duration = this.useChapterTrack ? this.currentChapterDuration : this.duration; const chapterTime = (offsetX / this.trackWidth) * duration; - const totalTime = baseTime + ((offsetX / this.trackWidth) * duration); + const totalTime = baseTime + chapterTime; if (this.$refs.hoverTimestamp) { var width = this.$refs.hoverTimestamp.clientWidth