Skip to content

Commit 0c3e56d

Browse files
skeetergraphicsscottgonzalez
authored andcommitted
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.
1 parent 8bb412d commit 0c3e56d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ui/jquery.ui.slider.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,9 @@ $.widget( "ui.slider", $.ui.mouse, {
309309
( parseInt( closestHandle.css("marginTop"), 10 ) || 0)
310310
};
311311

312-
this._slide( event, index, normValue );
312+
if ( !this.handles.hasClass( "ui-state-hover" ) ) {
313+
this._slide( event, index, normValue );
314+
}
313315
this._animateOff = true;
314316
return true;
315317
},

0 commit comments

Comments
 (0)