From: Richard D. Worth Date: Fri, 2 Apr 2010 14:32:33 +0000 (-0400) Subject: slider: corrected a regression introduced by commit 5ffd3ab X-Git-Tag: 1.8.1~5^2~42 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=51b72a502fcfd8bdcc675ab48c715931000996f5;p=jquery-ui.git slider: corrected a regression introduced by commit 5ffd3ab --- 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;