mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
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:
@ -189,8 +189,12 @@ function changeVolume(toIncrease, options) {
|
|||||||
|
|
||||||
function updateVolumeSlider(options) {
|
function updateVolumeSlider(options) {
|
||||||
// Slider value automatically rounds to multiples of 5
|
// Slider value automatically rounds to multiples of 5
|
||||||
$("#volume-slider").value = options.savedVolume > 0 && options.savedVolume < 5 ?
|
for (const slider of ["#volume-slider", "#expand-volume-slider"]) {
|
||||||
5 : options.savedVolume;
|
$(slider).value =
|
||||||
|
options.savedVolume > 0 && options.savedVolume < 5
|
||||||
|
? 5
|
||||||
|
: options.savedVolume;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let volumeHoverTimeoutID;
|
let volumeHoverTimeoutID;
|
||||||
|
|||||||
Reference in New Issue
Block a user