Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311358 - Problem with hover state and animations
Summary: Problem with hover state and animations
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.3   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.3 RC1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-03 08:13 EDT by Ralf Sternberg CLA
Modified: 2010-05-04 15:52 EDT (History)
0 users

See Also:


Attachments
fix (6.55 KB, patch)
2010-05-04 06:01 EDT, Tim Buschtoens CLA
rsternberg: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.