fix: player display bug

This commit is contained in:
Terry Geng 2020-05-19 21:35:19 +08:00
parent c8f0ccf706
commit 2c60e46ad8
No known key found for this signature in database
GPG Key ID: F982F8EA1DF720E7

View File

@ -156,7 +156,7 @@ function displayPlaylist(data) {
}
displayActiveItem(data.current_index);
updatePlayerInfo(items[data.current_index]);
updatePlayerInfo(items[data.current_index - data.start_from]);
bindPlaylistEvent();
playlist_table.animate({ opacity: 1 }, 200);
});
@ -925,7 +925,7 @@ function uploadNextFile(){
req.upload.addEventListener("progress", function(e){
if (e.lengthComputable) {
let percent = e.loaded / e.total;
setProgressBar(file_progress_item.progress, percent, Math.floor(percent) + "%");
setProgressBar(file_progress_item.progress, percent, Math.floor(percent*100) + "%");
}
});