Permalink
Browse files

Slider: Modified handle and scroll content not to jump twice when han…

…dle is grabbed and dragged from anywhere other than absolute center. Fixed #4467 - Slider: handle jumps a few pixels when clicked.
  • Loading branch information...
1 parent 8bb412d commit 0c3e56dd7d82e889ffabc606fd66d47f3e2d27c8 @skeetergraphics skeetergraphics committed with scottgonzalez Nov 19, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 ui/jquery.ui.slider.js
View
4 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;
},

1 comment on commit 0c3e56d

@scottgonzalez
jQuery Foundation member

@skeetergraphics Can you please sign our CLA?

Please sign in to comment.