mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-02-15 21:14:56 -05:00
slider: closestHandle never got set when the distance between the handles are the maximum available (fixes #3948)
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user