diff options
-rw-r--r-- | ui/ui.slider.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/ui.slider.js b/ui/ui.slider.js index 583f51504..f30365368 100644 --- a/ui/ui.slider.js +++ b/ui/ui.slider.js @@ -196,10 +196,11 @@ $.widget("ui.slider", $.extend({}, $.ui.mouse, { index = i; } }); - - // workaround for bug #3736 (if both handles of a range are at 0, the first is always used as the one with least distance, + + // workaround for bug #3736 (if both handles of a range are at 0, + // the first is always used as the one with least distance, // and moving it is obviously prevented by preventing negative ranges) - if(o.range && (this.values(0) + this.values(1)) == 0) { + if(o.range == true && this.values(1) == o.min) { closestHandle = $(this.handles[++index]); } |