mirror of
https://github.com/SuperBFG7/ympd
synced 2024-11-10 16:19:54 +00:00
Fix: seek in progress bar
This commit is contained in:
parent
f9c5decfa5
commit
e83929bc17
@ -377,7 +377,7 @@ function appInit() {
|
||||
domCache.progressBar.value = 0;
|
||||
domCache.progressBar.addEventListener('change', function(event) {
|
||||
if (currentSong && currentSong.currentSongId >= 0) {
|
||||
var seekVal = Math.ceil(currentSong.totalTime * (domCache.progressBar.value / 100));
|
||||
var seekVal = Math.ceil(currentSong.totalTime * (domCache.progressBar.value / 1000));
|
||||
sendAPI({"cmd": "MPD_API_PLAYER_SEEK", "data": {"songid": currentSong.currentSongId, "seek": seekVal}});
|
||||
}
|
||||
}, false);
|
||||
|
Loading…
Reference in New Issue
Block a user