no longer scroll past max volume lmaoo

This commit is contained in:
Maikiwi 2022-03-04 22:20:15 -08:00
parent 69aa707e78
commit 8a6902d0af

View file

@ -3526,7 +3526,7 @@ const app = new Vue({
return event.deltaY < 0; return event.deltaY < 0;
}, },
volumeUp() { volumeUp() {
if ((app.mk.volume + app.cfg.audio.volumeStep) > 1) { if ((app.mk.volume + app.cfg.audio.volumeStep) > app.cfg.audio.maxVolume) {
app.mk.volume = app.cfg.audio.maxVolume; app.mk.volume = app.cfg.audio.maxVolume;
console.log('setting max volume') console.log('setting max volume')
} else { } else {