mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
slider: corrected a regression introduced by commit 5ffd3ab
This commit is contained in:
parent
354682e3eb
commit
51b72a502f
4
ui/jquery.ui.slider.js
vendored
4
ui/jquery.ui.slider.js
vendored
@ -346,7 +346,7 @@ $.widget("ui.slider", $.ui.mouse, {
|
||||
percentMouse = 1 - percentMouse;
|
||||
|
||||
var valueTotal = this._valueMax() - this._valueMin(),
|
||||
valueMouse = percentMouse * valueTotal;
|
||||
valueMouse = this._valueMin() + percentMouse * valueTotal;
|
||||
|
||||
return this._trimAlignValue(valueMouse);
|
||||
},
|
||||
@ -566,7 +566,7 @@ $.widget("ui.slider", $.ui.mouse, {
|
||||
}
|
||||
var step = this.options.step,
|
||||
valModStep = val % step,
|
||||
alignValue = this._valueMin() + val - valModStep;
|
||||
alignValue = val - valModStep;
|
||||
|
||||
if (valModStep >= (step / 2)) {
|
||||
alignValue += step;
|
||||
|
Loading…
Reference in New Issue
Block a user