Merge pull request #670 from Araxeus/fix-precise-volume-not-updating-expand-slider

[precise-volume] fix expand-volume-slider not updating its value
This commit is contained in:
th-ch
2022-04-07 21:00:19 +02:00
committed by GitHub

View File

@ -189,8 +189,12 @@ function changeVolume(toIncrease, options) {
function updateVolumeSlider(options) {
// Slider value automatically rounds to multiples of 5
$("#volume-slider").value = options.savedVolume > 0 && options.savedVolume < 5 ?
5 : options.savedVolume;
for (const slider of ["#volume-slider", "#expand-volume-slider"]) {
$(slider).value =
options.savedVolume > 0 && options.savedVolume < 5
? 5
: options.savedVolume;
}
}
let volumeHoverTimeoutID;