]> source.dussan.org Git - jquery-ui.git/commitdiff
slider: closestHandle never got set when the distance between the handles are the...
authorPaul Bakaus <paul.bakaus@googlemail.com>
Wed, 28 Jan 2009 19:14:38 +0000 (19:14 +0000)
committerPaul Bakaus <paul.bakaus@googlemail.com>
Wed, 28 Jan 2009 19:14:38 +0000 (19:14 +0000)
ui/ui.slider.js

index 20a72c89cbc194fd2bbe54339ed8a6f12f76c1fc..838cc32956516ea4d739b0134756078625ea4763 100644 (file)
@@ -185,7 +185,7 @@ $.widget("ui.slider", $.extend({}, $.ui.mouse, {
                var position = { x: event.pageX, y: event.pageY };
                var normValue = this._normValueFromMouse(position);
 
-               var distance = this._valueMax(), closestHandle;
+               var distance = this._valueMax() + 1, closestHandle;
                var self = this, index;
                this.handles.each(function(i) {
                        var thisDistance = Math.abs(normValue - self.values(i));