This commit is contained in:
梁灏 2017-04-20 11:38:12 +08:00
parent 8dd5468734
commit 62a06f5679
2 changed files with 10 additions and 19 deletions

View file

@ -230,7 +230,11 @@
if (value[1] > this.max) {
value[1] = this.max;
}
if (this.value[0] === value[0] && this.value[1] === value[1]) return;
if (this.value[0] === value[0] && this.value[1] === value[1]) {
this.setFirstPosition(this.currentValue[0]);
this.setSecondPosition(this.currentValue[1]);
return;
}
this.currentValue = value;
this.setFirstPosition(this.currentValue[0]);