From 3c347bef7d40f1d3eac0d3f6f1c854c10ea451cf Mon Sep 17 00:00:00 2001 From: Alex Maras Date: Sun, 26 Jun 2022 00:00:52 +0800 Subject: [PATCH] fix: better variable naming --- client/components/player/PlayerTrackBar.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/components/player/PlayerTrackBar.vue b/client/components/player/PlayerTrackBar.vue index 8eaf7690..7b4f7c87 100644 --- a/client/components/player/PlayerTrackBar.vue +++ b/client/components/player/PlayerTrackBar.vue @@ -145,8 +145,8 @@ 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 + chapterTime; + const progressTime = (offsetX / this.trackWidth) * duration; + const totalTime = baseTime + progressTime; if (this.$refs.hoverTimestamp) { var width = this.$refs.hoverTimestamp.clientWidth @@ -167,7 +167,7 @@ export default { this.$refs.hoverTimestampArrow.style.left = posLeft + 'px' } if (this.$refs.hoverTimestampText) { - var hoverText = this.$secondsToTimestamp(chapterTime) + var hoverText = this.$secondsToTimestamp(progressTime) var chapter = this.chapters.find((chapter) => chapter.start <= totalTime && totalTime < chapter.end) if (chapter && chapter.title) {