aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-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));