From: Paul Bakaus Date: Wed, 28 Jan 2009 19:14:38 +0000 (+0000) Subject: slider: closestHandle never got set when the distance between the handles are the... X-Git-Tag: 1.6rc6~60 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1ad50e24a9f13c99b6a04337e1f6729a5113092d;p=jquery-ui.git slider: closestHandle never got set when the distance between the handles are the maximum available (fixes #3948) --- diff --git a/ui/ui.slider.js b/ui/ui.slider.js index 20a72c89c..838cc3295 100644 --- a/ui/ui.slider.js +++ b/ui/ui.slider.js @@ -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));