Correct values passed to checkLimits method
This commit is contained in:
parent
c45f05dd43
commit
166dbc5615
1 changed files with 2 additions and 2 deletions
|
@ -332,8 +332,8 @@
|
||||||
changeButtonPosition (newPos, forceType) {
|
changeButtonPosition (newPos, forceType) {
|
||||||
const type = forceType || this.pointerDown;
|
const type = forceType || this.pointerDown;
|
||||||
const index = type === 'min' ? 0 : 1;
|
const index = type === 'min' ? 0 : 1;
|
||||||
if (type === 'min') newPos = this.checkLimits([newPos, this.maxPosition])[0];
|
if (type === 'min') newPos = this.checkLimits([newPos, this.max])[0];
|
||||||
else newPos = this.checkLimits([this.minPosition, newPos])[1];
|
else newPos = this.checkLimits([this.min, newPos])[1];
|
||||||
|
|
||||||
const modulus = this.handleDecimal(newPos,this.step);
|
const modulus = this.handleDecimal(newPos,this.step);
|
||||||
const value = this.currentValue;
|
const value = this.currentValue;
|
||||||
|
|
Loading…
Add table
Reference in a new issue