diff options
| author | Jens Mönig <jens@moenig.org> | 2014-09-30 09:40:28 +0200 |
|---|---|---|
| committer | Jens Mönig <jens@moenig.org> | 2014-09-30 09:40:28 +0200 |
| commit | 03390418ae308651de0f50bf09311cdc4591f682 (patch) | |
| tree | a86f11dc2b351ceb1dad5a9471742ef3fa7c12ab | |
| parent | ab3e1b3aabb8a22064db559228bf1038451d9b5a (diff) | |
| parent | f28c50ed7f409e49763df31de6b4400246f39e04 (diff) | |
| download | snap-03390418ae308651de0f50bf09311cdc4591f682.tar.gz snap-03390418ae308651de0f50bf09311cdc4591f682.zip | |
Merge pull request #549 from Gubolin/issue_285
allow negative min/max values for sliders (fix #285)
| -rw-r--r-- | morphic.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 ); } |
