put limits on last commit

This commit is contained in:
booploops 2022-01-04 22:58:28 -08:00
parent 6370cb4263
commit 4ccc389fa3

View file

@ -2589,9 +2589,13 @@ const app = new Vue({
}, },
volumeWheel(event) { volumeWheel(event) {
if (event.deltaY < 0) { if (event.deltaY < 0) {
this.mk.volume += 0.1; if(this.mk.volume < 1){
this.mk.volume += 0.1
}
} else if (event.deltaY > 0) { } else if (event.deltaY > 0) {
this.mk.volume -= 0.1; if(this.mk.volume > 0){
this.mk.volume -= 0.1
}
} }
}, },
async apiCall(url, callback) { async apiCall(url, callback) {