From 51b72a502fcfd8bdcc675ab48c715931000996f5 Mon Sep 17 00:00:00 2001 From: "Richard D. Worth" Date: Fri, 2 Apr 2010 10:32:33 -0400 Subject: slider: corrected a regression introduced by commit 5ffd3ab --- ui/jquery.ui.slider.js | 4 ++-- 1 file 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; -- cgit v1.2.3