[TIMOB-20598] Windows: views not animating correctly
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Critical |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2016-03-31T14:02:22.000+0000 |
| Affected Version/s | Release 5.2.0 |
| Fix Version/s | Release 5.3.0 |
| Components | Windows |
| Labels | qe-5.3.0, supportTeam |
| Reporter | John Surface |
| Assignee | Kota Iguchi |
| Created | 2016-02-22T14:10:09.000+0000 |
| Updated | 2016-04-28T22:34:58.000+0000 |
Description
To reproduce:
-Start with a view with a left value of 10 (Position 1)
-Animate the view to left 50 (Position 2)
-Animate the view again to left 100 (Position 3)
Expected: view animates from Position 1 to Position 2, and then from Position 2 to Position 3
Actual: view animates from Position 1 to Position 2, then jumps to Position 1 and animates to Position 3
The bug you have described seems to be not occurring on android. View animates from Position 1 to Position 2, and then from Position 2 to Position 3 for the following code without any problem. If you are trying to say something else or in different platform please mention in details in comment.
*Environment*: *Operating System:* Windows 8.1 *Device info:* Nexux7 (android 6.0.1) *Node.js Version:* 0.12.7 *npm Version:* 2.11.3 *Titanium SDKs:* 5.2.0.v20160220080449 and 5.1.2.GA *Java Development Kit Version:* 1.8.0_73 *Titanium CLI Version:* 5.0.5var box = Ti.UI.createView({ backgroundColor : 'red', left : '10', height : '100', width : '100' }); win.add(box); var pos=0; box.addEventListener('click', function() { pos+=50; var a = Ti.UI.createAnimation({ left: pos, duration : 2000, }); box.animate(a); });https://github.com/appcelerator/titanium_mobile_windows/pull/599
Verified as fixed, on tapping of the view, the element animates from position 1 to 2, and then from position 2 to position 3, etc. *Note:* However there is an issue with the animations when the view is pressed repeatedly when an animation is currently running. A ticket has been created to improve the handling of such events. _(See related tickets)_ Tested on: Windows 10 Home & Pro Windows Phone 10.0 & 8.1 (Microsoft Lumia 640 LTE) Appc Studio: 4.6.0.201604081249 Ti SDK: 5.3.0.v20160413061223 Appc NPM: 4.2.5-1 Appc Core: 5.3.0-12 Node: v4.4.2 *Closing Ticket.*