From 2dc8cd032e59edd06883c38a676e0231d0ad9c8b Mon Sep 17 00:00:00 2001 From: Mohammad Younes Date: Tue, 28 Apr 2015 15:22:43 +0300 Subject: [PATCH] Try the other handle if the one selected is fixed. --- js/ion.rangeSlider.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ion.rangeSlider.js b/js/ion.rangeSlider.js index f16a777..7bc0b0b 100644 --- a/js/ion.rangeSlider.js +++ b/js/ion.rangeSlider.js @@ -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"; } } },