aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorRichard D. Worth <rdworth@gmail.com>2010-04-02 10:32:33 -0400
committerRichard D. Worth <rdworth@gmail.com>2010-04-02 10:32:33 -0400
commit51b72a502fcfd8bdcc675ab48c715931000996f5 (patch)
treea2b8b5f279ed4dc7ac9204ad246a189819b86a5a /ui
parent354682e3ebba79e5b0ad014ea10c43f0a57a25e2 (diff)
downloadjquery-ui-51b72a502fcfd8bdcc675ab48c715931000996f5.tar.gz
jquery-ui-51b72a502fcfd8bdcc675ab48c715931000996f5.zip
slider: corrected a regression introduced by commit 5ffd3ab
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.slider.js4
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;