From 114c001aba3406e35e4fa1343501de7518257519 Mon Sep 17 00:00:00 2001 From: "Richard D. Worth" Date: Tue, 11 May 2010 08:36:56 -0400 Subject: [PATCH] Slider: trim to max and min on UP DOWN LEFT RIGHT. Fixed #5591 - Slider: can go outside min and max with keyboard --- ui/jquery.ui.slider.js | 4 ++-- 1 file 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; } -- 2.39.5