From 166dbc56150936553af41b0134afb57fd391138e Mon Sep 17 00:00:00 2001 From: Sergio Crisostomo Date: Wed, 2 May 2018 16:37:57 +0200 Subject: [PATCH] Correct values passed to checkLimits method --- src/components/slider/slider.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/slider/slider.vue b/src/components/slider/slider.vue index 37034df..9fc1321 100644 --- a/src/components/slider/slider.vue +++ b/src/components/slider/slider.vue @@ -332,8 +332,8 @@ changeButtonPosition (newPos, forceType) { const type = forceType || this.pointerDown; const index = type === 'min' ? 0 : 1; - if (type === 'min') newPos = this.checkLimits([newPos, this.maxPosition])[0]; - else newPos = this.checkLimits([this.minPosition, newPos])[1]; + if (type === 'min') newPos = this.checkLimits([newPos, this.max])[0]; + else newPos = this.checkLimits([this.min, newPos])[1]; const modulus = this.handleDecimal(newPos,this.step); const value = this.currentValue; -- libgit2 0.21.4