Skip to content
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
rdworth committed May 11, 2010
1 parent 5fd1580 commit 114c001aba3406e35e4fa1343501de7518257519
Showing with 2 additions and 2 deletions.
  1. +2 −2 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.
You can’t perform that action at this time.