Skip to content

Commit

Permalink
Merge pull request #18 from uday-kiran-001/main
Browse files Browse the repository at this point in the history
Seek bar dot bug solved
  • Loading branch information
adityakmrmishra authored Oct 2, 2023
2 parents 4a9d374 + af2a52d commit 4e8f1fb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,11 @@ music.addEventListener('timeupdate', () =>{
let progressBar = parseInt((music_curr / music_dur)*100);
seek.value = progressBar;

let seekbar = seek.value;
bar2.style.width =`${seekbar}%`;
dot.style.left = `${seekbar}%`;
if(music_curr){
let seekbar = seek.value;
bar2.style.width =`${seekbar}%`;
dot.style.left = `${seekbar}%`;
}
});

// seek bar forward and backward
Expand Down

0 comments on commit 4e8f1fb

Please sign in to comment.