Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-11499

iOS: Animation:New layout is set for view if clicked while animating.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Hold
    • Affects Version/s: Release 3.0.0
    • Fix Version/s: None
    • Component/s: iOS
    • Environment:

      Titanium SDK: 3.0.0.v20121015174610
      Titanium  Studio: 2.1.3.201209101847
      Device : iPad iOS 6.0 , iPad iOS 5.1
      Xcode : 4.5
      Machine OS : MAC 10.8

      Description

      This is not a regression. It exists as far as 2.0.1.

      The view if clicked while it is animating, do not resizes to its original size.

      Steps to reproduce:
      1. Use the code below in app.js and run the app

      var win = Ti.UI.createWindow({backgroundColor : 'white'});
      			
      			var box = Ti.UI.createView({
      				backgroundColor : 'red',
      				height : '120',
      				width : '100',
      				top: 70
      			});
      						
      			box.addEventListener('click', function() {
      				var matrix = Ti.UI.create2DMatrix()
      				matrix = matrix.rotate(90);
      				matrix = matrix.scale(2, 2);
      				var a = Ti.UI.createAnimation({
      					transform : matrix,
      					duration : 500,
      					autoreverse : true,
      					repeat : 2
      				});
      				box.animate(a);
      			});
      			
      			win.add(box);
      			win.open();
      
      

      2. Click the red view
      3. Click the red view again while it is animating(it may take 2-3 attempts to reproduce the issue)

      Expected result
      2. The view should start animating.
      3. It should reset animation cycle, complete it and return to the original size.

      Actual result:
      2. The view starts animating.
      3. View resets the animation cycle but do not returns to its original size ever.

        Attachments

          Activity

            People

            • Assignee:
              ingo Ingo Muschenetz
              Reporter:
              sbhadauria Shyam Bhadauria
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-14748
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration