Skip to content

Commit

Permalink
slider: added better description for workaround for #3726
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Bakaus committed Jan 28, 2009
1 parent 0305e19 commit 4bf637b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/ui.slider.js
Expand Up @@ -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) { if(o.range && (this.values(0) + this.values(1)) == 0) {
closestHandle = $(this.handles[++index]); closestHandle = $(this.handles[++index]);
} }
Expand Down

0 comments on commit 4bf637b

Please sign in to comment.