From a57f2d362dd6b309bf64a42635567c8c97f27302 Mon Sep 17 00:00:00 2001 From: Mariya Shusharina Date: Sun, 22 Sep 2024 14:28:53 +0200 Subject: [PATCH] fix: make value 0 of progress-bar while changing song --- scripts.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts.js b/scripts.js index f384d44..7d4ab8f 100644 --- a/scripts.js +++ b/scripts.js @@ -126,6 +126,8 @@ function nextSong() { currTimeDiv.textContent = songTime; maxTimeDiv.textContent = songMaxTime; + + progressBar.value = 0; } function prevSong() { @@ -162,6 +164,8 @@ function prevSong() { currTimeDiv.textContent = songTime; maxTimeDiv.textContent = songMaxTime; + + progressBar.value = 0; } function songTimeChange(value) {