mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
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:
parent
8bb412dd4a
commit
0c3e56dd7d
4
ui/jquery.ui.slider.js
vendored
4
ui/jquery.ui.slider.js
vendored
@ -309,7 +309,9 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|||||||
( parseInt( closestHandle.css("marginTop"), 10 ) || 0)
|
( 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;
|
this._animateOff = true;
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user