Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 311358

Summary: Problem with hover state and animations
Product: [RT] RAP Reporter: Ralf Sternberg <rsternberg>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.3   
Target Milestone: 1.3 RC1   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
fix rsternberg: iplog+

Description Ralf Sternberg CLA 2010-05-03 08:13:26 EDT
Reproduce:
* open demo with business theme
* hover over a button
* leave the button and enter it again quickly (before the animation has finished)
-> hover state is missing
Comment 1 Tim Buschtoens CLA 2010-05-04 06:01:48 EDT
Created attachment 166927 [details]
fix

What happend:
AbstractButton uses animation.cancel() if the change in backgroundColor/gradient is not to be animated. Usually, the animationRenderer detects this and renders the new value without delay. However, if the animation is already running, no such check existed and the changes were not rendered.

Solution: 
Introduced check in AnimationRender#onOriginalRenderer. Also some minor changes to AnimationRender#renderValue to better test for the endResult of a canceled animation. Tests updated.
Comment 2 Ralf Sternberg CLA 2010-05-04 10:31:39 EDT
Commited patch to CVS HEAD.