From: skeetergraphics Date: Fri, 19 Nov 2010 15:35:34 +0000 (-0500) Subject: Slider: Modified handle and scroll content not to jump twice when handle is grabbed... X-Git-Tag: 1.8.7~28 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0c3e56dd7d82e889ffabc606fd66d47f3e2d27c8;p=jquery-ui.git Slider: Modified handle and scroll content not to jump twice when handle is grabbed and dragged from anywhere other than absolute center. Fixed #4467 - Slider: handle jumps a few pixels when clicked. --- diff --git a/ui/jquery.ui.slider.js b/ui/jquery.ui.slider.js index d90a7940f..ed27ae9c8 100644 --- a/ui/jquery.ui.slider.js +++ b/ui/jquery.ui.slider.js @@ -309,7 +309,9 @@ $.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; },