fix: make button click audio respect current vol

This commit is contained in:
2024-07-24 17:18:27 +01:00
parent 1dc3cba726
commit 6ba045fddb

View File

@@ -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;