Skip to content
Permalink
Browse files

slider: corrected a regression introduced by commit 5ffd3ab

  • Loading branch information
rdworth committed Apr 2, 2010
1 parent 354682e commit 51b72a502fcfd8bdcc675ab48c715931000996f5
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;

0 comments on commit 51b72a5

Please sign in to comment.
You can’t perform that action at this time.