Skip to content

Commit

Permalink
Try the other handle if the one selected is fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadYounes committed Apr 28, 2015
1 parent 1e52387 commit 2dc8cd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/ion.rangeSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -892,9 +892,9 @@
} else {
var m_point = this.coords.p_from_real + ((this.coords.p_to_real - this.coords.p_from_real) / 2);
if (real_x >= m_point) {
return "to";
return this.options.to_fixed ? "from" : "to";
} else {
return "from";
return this.options.from_fixed ? "to" : "from";
}
}
},
Expand Down

0 comments on commit 2dc8cd0

Please sign in to comment.