summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortonychenr <tonychenr@gmail.com>2014-10-07 19:15:08 -0700
committertonychenr <tonychenr@gmail.com>2014-10-07 19:15:08 -0700
commitf308c23824fcb48e25d2296ddc44a3ab4bcbef64 (patch)
treead72d5fcedf496964fea3ae37281795c38d6d9e6
parent2ae675132a52b8fdb3bd52e80db858500de9f265 (diff)
downloadsnap-f308c23824fcb48e25d2296ddc44a3ab4bcbef64.tar.gz
snap-f308c23824fcb48e25d2296ddc44a3ab4bcbef64.zip
Fixed range 1 slider bug issue # 301
-rw-r--r--morphic.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/morphic.js b/morphic.js
index 4e18482..b19d390 100644
--- a/morphic.js
+++ b/morphic.js
@@ -5754,7 +5754,7 @@ SliderMorph.prototype.rangeSize = function () {
};
SliderMorph.prototype.ratio = function () {
- return this.size / this.rangeSize();
+ return this.size / (this.rangeSize() + 1);
};
SliderMorph.prototype.unitSize = function () {