diff options
author | Richard D. Worth <rdworth@gmail.com> | 2010-04-02 10:32:33 -0400 |
---|---|---|
committer | Richard D. Worth <rdworth@gmail.com> | 2010-04-02 10:32:33 -0400 |
commit | 51b72a502fcfd8bdcc675ab48c715931000996f5 (patch) | |
tree | a2b8b5f279ed4dc7ac9204ad246a189819b86a5a /ui/jquery.ui.slider.js | |
parent | 354682e3ebba79e5b0ad014ea10c43f0a57a25e2 (diff) | |
download | jquery-ui-51b72a502fcfd8bdcc675ab48c715931000996f5.tar.gz jquery-ui-51b72a502fcfd8bdcc675ab48c715931000996f5.zip |
slider: corrected a regression introduced by commit 5ffd3ab
Diffstat (limited to 'ui/jquery.ui.slider.js')
-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; |