]> source.dussan.org Git - jquery-ui.git/commitdiff
Slider: Modified handle and scroll content not to jump twice when handle is grabbed...
authorskeetergraphics <skeetergraphics@gmail.com>
Fri, 19 Nov 2010 15:35:34 +0000 (10:35 -0500)
committerScott González <scott.gonzalez@gmail.com>
Fri, 19 Nov 2010 15:35:34 +0000 (10:35 -0500)
ui/jquery.ui.slider.js

index d90a7940f8f3bfa3abd9c3ec5cf64bc0ba2e7276..ed27ae9c86cc0ff1247c9c182fd153ab267bf66a 100644 (file)
@@ -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;
        },