Skip to content

Commit

Permalink
Merge pull request #8 from yuygfgg/develop
Browse files Browse the repository at this point in the history
fix progressbar not update after click
  • Loading branch information
yuygfgg authored Aug 25, 2024
2 parents d4600bb + ab0e856 commit 1d9f527
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,9 @@ <h3>Lyrics</h3>
);
const progressPercent =
(audioPlayer.currentTime / audioPlayer.duration) * 100;
document.getElementById(
"progress"
).style.width = `${progressPercent}%`;
lrc.play(currentTime);
};
audioPlayer.onpause = () => {
Expand Down

0 comments on commit 1d9f527

Please sign in to comment.