]> source.dussan.org Git - jquery-ui.git/commitdiff
slider: added better description for workaround for #3726
authorPaul Bakaus <paul.bakaus@googlemail.com>
Wed, 28 Jan 2009 23:11:15 +0000 (23:11 +0000)
committerPaul Bakaus <paul.bakaus@googlemail.com>
Wed, 28 Jan 2009 23:11:15 +0000 (23:11 +0000)
ui/ui.slider.js

index 763aaca54e46daa12dc3792e7a33cc0c2097fc55..03d7bc6ccf7ca1a288d1797d51d1eeb1723d2563 100644 (file)
@@ -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]);
                }