slider: added better description for workaround for #3726

This commit is contained in:
Paul Bakaus 2009-01-28 23:11:15 +00:00
parent 0305e19240
commit 4bf637bb2c

View 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]);
}