diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2009-01-28 23:11:15 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2009-01-28 23:11:15 +0000 |
commit | 4bf637bb2c1fe59844af0b3dd975c84c9a7e7403 (patch) | |
tree | ba35f14224918ba85e8b46cf875189176e955eeb /ui/ui.slider.js | |
parent | 0305e1924017bcb99c3a89fa3592f47f78e75305 (diff) | |
download | jquery-ui-4bf637bb2c1fe59844af0b3dd975c84c9a7e7403.tar.gz jquery-ui-4bf637bb2c1fe59844af0b3dd975c84c9a7e7403.zip |
slider: added better description for workaround for #3726
Diffstat (limited to 'ui/ui.slider.js')
-rw-r--r-- | ui/ui.slider.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/ui.slider.js b/ui/ui.slider.js index 763aaca54..03d7bc6cc 100644 --- a/ui/ui.slider.js +++ b/ui/ui.slider.js @@ -198,7 +198,8 @@ $.widget("ui.slider", $.extend({}, $.ui.mouse, { } }); - //workaround for bug #3736 + // 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) { closestHandle = $(this.handles[++index]); } |