summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--morphic.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/morphic.js b/morphic.js
index 2a242f2..d56aad4 100644
--- a/morphic.js
+++ b/morphic.js
@@ -5916,14 +5916,14 @@ SliderMorph.prototype.setStart = function (num) {
var newStart;
if (typeof num === 'number') {
this.start = Math.min(
- Math.max(num, 0),
+ num,
this.stop - this.size
);
} else {
newStart = parseFloat(num);
if (!isNaN(newStart)) {
this.start = Math.min(
- Math.max(newStart, 0),
+ newStart,
this.stop - this.size
);
}