I am developing a demo where I need a slider to reset after use.
Load the attached project. In the code, there is a mouseReleased event on the slider which sets the slider back to 0.
Perform a slow mouse click on the track, giving the thumb time to catch up to the mouse position and it works as expected.
However, perform a brisk mouse click on the track and the thumb does not reset back to 0.
Seems like the slider ignores the new value if the thumb is still animating?
Load the attached project. In the code, there is a mouseReleased event on the slider which sets the slider back to 0.
Perform a slow mouse click on the track, giving the thumb time to catch up to the mouse position and it works as expected.
However, perform a brisk mouse click on the track and the thumb does not reset back to 0.
Seems like the slider ignores the new value if the thumb is still animating?
- relates to
-
JDK-8101909 Animate the movement of the Slider thumb when the user clicks on the Slider track
-
- Resolved
-