Skip to content

Commit

Permalink
Slider: trim value to min and max when page_up or page_down is presse…
Browse files Browse the repository at this point in the history
…d. Fixed #5591 - Slider: can go below its defined minimum with PageDown
  • Loading branch information
rdworth committed May 11, 2010
1 parent b53b48b commit b7c0823
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/jquery.ui.slider.js
Expand Up @@ -181,10 +181,10 @@ $.widget( "ui.slider", $.ui.mouse, {
newVal = self._valueMax();
break;
case $.ui.keyCode.PAGE_UP:
newVal = curVal + ( (self._valueMax() - self._valueMin()) / numPages );
newVal = self._trimAlignValue( curVal + ( (self._valueMax() - self._valueMin()) / numPages ) );
break;
case $.ui.keyCode.PAGE_DOWN:
newVal = curVal - ( (self._valueMax() - self._valueMin()) / numPages );
newVal = self._trimAlignValue( curVal - ( (self._valueMax() - self._valueMin()) / numPages ) );
break;
case $.ui.keyCode.UP:
case $.ui.keyCode.RIGHT:
Expand Down

0 comments on commit b7c0823

Please sign in to comment.