diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-02-02 03:07:54 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-02-02 03:07:54 +0000 |
commit | 3051eca215181f4de902e29f4ddd0d683cb9f33c (patch) | |
tree | 0a56ba6f38a3ced343717410dabf4f271ef9ff41 /ui/ui.slider.js | |
parent | 94c16d6378b51f8f9d60768f902a0dbf0d6d5087 (diff) | |
download | jquery-ui-3051eca215181f4de902e29f4ddd0d683cb9f33c.tar.gz jquery-ui-3051eca215181f4de902e29f4ddd0d683cb9f33c.zip |
Slider:
- Fixed #4016: Vertical slider was unusable when the thumb was at the min value.
- Fixed #3736 for real: Vertical slider was unusable when using a range and both thumbs were at the min value.
Diffstat (limited to 'ui/ui.slider.js')
-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]); } |