From c6bdb6206a43f3d8b112ae997ddd61b331a70e38 Mon Sep 17 00:00:00 2001 From: skeetergraphics Date: Fri, 19 Nov 2010 06:38:06 -0800 Subject: [PATCH] Slider: Modified handle and scroll content not to jump twice when handle is grabbed and dragged from anywhere other than absolute center. Fixed #4467 - Poor UX, slider should act like a normal scrollbar. This is universal and not specific to IE and FF as ticket states. --- ui/jquery.ui.slider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/jquery.ui.slider.js b/ui/jquery.ui.slider.js index d90a7940f8f..78d6963ef62 100644 --- a/ui/jquery.ui.slider.js +++ b/ui/jquery.ui.slider.js @@ -309,7 +309,7 @@ $.widget( "ui.slider", $.ui.mouse, { ( parseInt( closestHandle.css("marginTop"), 10 ) || 0) }; - this._slide( event, index, normValue ); + if (!this.handles.hasClass('ui-state-hover')) { this._slide( event, index, normValue ); } this._animateOff = true; return true; },