From b7bf4b4527d3e849b55274e38e62c0d893779a1a Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Mon, 12 Oct 2009 10:50:38 +0000 Subject: Slider: Fixed animation to respond to keypress as well as mouse click, animation still does not occur at init or during mouse drag slide, both by design. Animation now occurs, if animate is on, when using the value method, but not when using the value option. This allows for animated and non-animated programmatic setting of values without changing the animate option. Fixes #4432 - Allow animation when programmatically changing slider value Fixes #4659 - Allow slider to animate if slider value is set programatically --- .../visual/slider/slider_option_animate_true.html | 45 ++++++++++++++++++++-- 1 file changed, 42 insertions(+), 3 deletions(-) (limited to 'tests/visual/slider') diff --git a/tests/visual/slider/slider_option_animate_true.html b/tests/visual/slider/slider_option_animate_true.html index 40bbb55b6..dba82c083 100644 --- a/tests/visual/slider/slider_option_animate_true.html +++ b/tests/visual/slider/slider_option_animate_true.html @@ -7,17 +7,56 @@ + + + -
+
+ $("#slider1").slider({ + animate: true, + step: 10 + }); +
+ + + + +
+ +
+ $("#slider2").slider({ + animate: true, + orientation: 'vertical', + step: 5, + values: [5, 15, 35, 75] + }); +
+ + + + +
-- cgit v1.2.3