diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.slider.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.slider.js b/ui/jquery.ui.slider.js index 84d19ccf5..7f891bae8 100644 --- a/ui/jquery.ui.slider.js +++ b/ui/jquery.ui.slider.js @@ -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; |