Skip to content

Commit

Permalink
Merge pull request #670 from Araxeus/fix-precise-volume-not-updating-…
Browse files Browse the repository at this point in the history
…expand-slider

[precise-volume] fix expand-volume-slider not updating its value
  • Loading branch information
th-ch authored Apr 7, 2022
2 parents dc500ef + f9cf12b commit f98e4ea
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions plugins/precise-volume/front.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f98e4ea

Please sign in to comment.