Permalink
Browse files

Slider: trim to max and min on UP DOWN LEFT RIGHT. Fixed #5591 - Slid…

…er: can go outside min and max with keyboard
  • Loading branch information...
1 parent 5fd1580 commit 114c001aba3406e35e4fa1343501de7518257519 @rdworth rdworth committed May 11, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 ui/jquery.ui.slider.js
View
4 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;
}

0 comments on commit 114c001

Please sign in to comment.