fix: make button click audio respect current vol
This commit is contained in:
@@ -147,6 +147,8 @@ volumeSlider.oninput = () => {
|
|||||||
currentAudio.volume = maxVolume / 100;
|
currentAudio.volume = maxVolume / 100;
|
||||||
currentVolume = maxVolume;
|
currentVolume = maxVolume;
|
||||||
}
|
}
|
||||||
|
clickAudio.volume = volumeSlider.value / 100;
|
||||||
|
clickReleaseAudio.volume = volumeSlider.value / 100;
|
||||||
};
|
};
|
||||||
|
|
||||||
volumeSlider.value = 100;
|
volumeSlider.value = 100;
|
||||||
|
Reference in New Issue
Block a user