Skip to content

Commit

Permalink
Slider: trim to max and min on UP DOWN LEFT RIGHT. Fixed #5591 - Slid…
Browse files Browse the repository at this point in the history
…er: can go outside min and max with keyboard
  • Loading branch information
rdworth committed May 11, 2010
1 parent 5fd1580 commit 114c001
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/jquery.ui.slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 114c001

Please sign in to comment.