diff options
author | Richard D. Worth <rdworth@gmail.com> | 2010-05-11 08:36:56 -0400 |
---|---|---|
committer | Richard D. Worth <rdworth@gmail.com> | 2010-05-11 08:36:56 -0400 |
commit | 114c001aba3406e35e4fa1343501de7518257519 (patch) | |
tree | 380194fea630bb4c75911b8d2c3fee2613e508ea /ui/jquery.ui.slider.js | |
parent | 5fd158053f01130e2eded9d5a41214719cf32a90 (diff) | |
download | jquery-ui-114c001aba3406e35e4fa1343501de7518257519.tar.gz jquery-ui-114c001aba3406e35e4fa1343501de7518257519.zip |
Slider: trim to max and min on UP DOWN LEFT RIGHT. Fixed #5591 - Slider: can go outside min and max with keyboard
Diffstat (limited to 'ui/jquery.ui.slider.js')
-rw-r--r-- | ui/jquery.ui.slider.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.slider.js b/ui/jquery.ui.slider.js index 210ca769a..71b52ce37 100644 --- a/ui/jquery.ui.slider.js +++ b/ui/jquery.ui.slider.js @@ -191,14 +191,14 @@ $.widget( "ui.slider", $.ui.mouse, { if ( curVal === self._valueMax() ) { return; } - newVal = curVal + step; + newVal = self._trimAlignValue( curVal + step ); break; case $.ui.keyCode.DOWN: case $.ui.keyCode.LEFT: if ( curVal === self._valueMin() ) { return; } - newVal = curVal - step; + newVal = self._trimAlignValue( curVal - step ); break; } |