Ticket #4432 (closed enhancement: fixed)

Opened 6 years ago

Last modified 5 years ago

Allow animation when programmatically changing slider value

Reported by: yourcelf Owned by:
Priority: minor Milestone: 1.8
Component: ui.slider Version: 1.7.1
Keywords: Cc:
Blocking: Blocked by:


The attached patch makes it possible to animate a slider when changing values programmatically by adding an "animate" argument to the "value" function. If the argument is not provided, current default behavior (no animation) is retained.


allow_animated_value_calls.diff Download (453 bytes) - added by yourcelf 6 years ago.
slider_animate.html Download (1.3 KB) - added by yourcelf 5 years ago.
Visual test for slider animation

Change History

Changed 6 years ago by yourcelf

comment:1 Changed 5 years ago by joern.zaefferer

  • Milestone changed from TBD to 1.8

Patch looks good, needs testing.

Changed 5 years ago by yourcelf

Visual test for slider animation

comment:2 Changed 5 years ago by yourcelf

I added a visual test for slider animation (there doesn't seem to be any test for animation in trunk currently). Not sure how I would do a unit test for this feature.

comment:3 Changed 5 years ago by rdworth

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in r3361

Note: See TracTickets for help on using tickets.