Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
clamp the value when trying to calc ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiefu committed Jun 5, 2014
1 parent 333df0e commit cd1747c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core-range.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
},

calcRatio: function(value) {
return (value - this.min) / (this.max - this.min);
return (this.clampValue(value) - this.min) / (this.max - this.min);
},

clampValue: function(value) {
Expand Down

0 comments on commit cd1747c

Please sign in to comment.