diff options
author | skeetergraphics <skeetergraphics@gmail.com> | 2010-11-19 10:35:34 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-11-19 10:35:34 -0500 |
commit | 0c3e56dd7d82e889ffabc606fd66d47f3e2d27c8 (patch) | |
tree | c8212cf7cc9354a66bcf33d93093e3e17bfc9c52 | |
parent | 8bb412dd4a09d66d0f4a5456410a647e3db38bcc (diff) | |
download | jquery-ui-0c3e56dd7d82e889ffabc606fd66d47f3e2d27c8.tar.gz jquery-ui-0c3e56dd7d82e889ffabc606fd66d47f3e2d27c8.zip |
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.
-rw-r--r-- | ui/jquery.ui.slider.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/jquery.ui.slider.js b/ui/jquery.ui.slider.js index d90a7940f..ed27ae9c8 100644 --- a/ui/jquery.ui.slider.js +++ b/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; }, |