Skip to content
Permalink
Browse files

slider: closestHandle never got set when the distance between the han…

…dles are the maximum available (fixes #3948)
  • Loading branch information
Paul Bakaus
Paul Bakaus committed Jan 28, 2009
1 parent bf6b493 commit 1ad50e24a9f13c99b6a04337e1f6729a5113092d
Showing with 1 addition and 1 deletion.
  1. +1 −1 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));

0 comments on commit 1ad50e2

Please sign in to comment.
You can’t perform that action at this time.