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.

This commit is contained in:
skeetergraphics 2010-11-19 10:35:34 -05:00 committed by Scott González
parent 8bb412dd4a
commit 0c3e56dd7d

View 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;
},