aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.slider.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/ui.slider.js')
-rw-r--r--ui/ui.slider.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/ui.slider.js b/ui/ui.slider.js
index 2f5ac1e7b..e011043ea 100644
--- a/ui/ui.slider.js
+++ b/ui/ui.slider.js
@@ -336,8 +336,10 @@ $.widget("ui.slider", $.extend({}, $.ui.mouse, {
var otherVal = this.values(index ? 0 : 1);
- if ((index == 0 && newVal >= otherVal) || (index == 1 && newVal <= otherVal))
- newVal = otherVal;
+ if ((this.options.values.length == 2 && this.options.range === true) &&
+ ((index == 0 && newVal > otherVal) || (index == 1 && newVal < otherVal))){
+ newVal = otherVal;
+ }
if (newVal != this.values(index)) {
var newValues = this.values();