Skip to content
This repository
Browse code

Slider - using limit to bring value back in range

  • Loading branch information...
commit 6cf8dfc00cd6336a929bd6493ad0475db97e261a 1 parent 5e18430
Derek Gould drgould authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  Source/Drag/Slider.js
2  Source/Drag/Slider.js
@@ -160,7 +160,7 @@ var Slider = new Class({
160 160 this.steps = this.options.steps || this.full;
161 161 this.stepSize = Math.abs(this.range) / this.steps;
162 162 this.stepWidth = this.stepSize * this.full / Math.abs(this.range);
163   - if (range) this.set(Array.pick([pos, this.step]).floor(this.max).max(this.min));
  163 + if (range) this.set(Array.pick([pos, this.step]).limit(this.min,this.max));
164 164 return this;
165 165 },
166 166

0 comments on commit 6cf8dfc

Please sign in to comment.
Something went wrong with that request. Please try again.