put limits on last commit
This commit is contained in:
parent
6370cb4263
commit
4ccc389fa3
1 changed files with 6 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue