Skip to content

Commit

Permalink
slider: corrected a regression introduced by commit 5ffd3ab
Browse files Browse the repository at this point in the history
  • Loading branch information
rdworth committed Apr 2, 2010
1 parent 354682e commit 51b72a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/jquery.ui.slider.js
Expand Up @@ -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);
},
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 51b72a5

Please sign in to comment.