aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.slider.js
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2009-01-28 19:14:38 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2009-01-28 19:14:38 +0000
commit1ad50e24a9f13c99b6a04337e1f6729a5113092d (patch)
tree1d6eac572a1be6edf0ee9cf78bfdfc97df4a146e /ui/ui.slider.js
parentbf6b493c901d3728cae05811c21b659ff2e13c2d (diff)
downloadjquery-ui-1ad50e24a9f13c99b6a04337e1f6729a5113092d.tar.gz
jquery-ui-1ad50e24a9f13c99b6a04337e1f6729a5113092d.zip
slider: closestHandle never got set when the distance between the handles are the maximum available (fixes #3948)
Diffstat (limited to 'ui/ui.slider.js')
-rw-r--r--ui/ui.slider.js2
1 files changed, 1 insertions, 1 deletions
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));