Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20598] Windows: views not animating correctly

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2016-03-31T14:02:22.000+0000
Affected Version/sRelease 5.2.0
Fix Version/sRelease 5.3.0
ComponentsWindows
Labelsqe-5.3.0, supportTeam
ReporterJohn Surface
AssigneeKota Iguchi
Created2016-02-22T14:10:09.000+0000
Updated2016-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

Comments

  1. Nazmus Salahin 2016-02-29

    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.
       var 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);
       });
       
    *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.5
  2. Kota Iguchi 2016-03-30

    https://github.com/appcelerator/titanium_mobile_windows/pull/599
  3. Harry Bryant 2016-04-13

    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.*

JSON Source