Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11499] iOS: Animation:New layout is set for view if clicked while animating.

GitHub Issuen/a
TypeBug
PriorityMedium
StatusResolved
ResolutionHold
Resolution Date2012-12-07T20:52:51.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsiOS
Labelsanimation, core, ios, look1, nested-animations, qe-ios100112
ReporterShyam Bhadauria
AssigneeIngo Muschenetz
Created2012-10-16T12:21:27.000+0000
Updated2017-03-14T23:40:53.000+0000

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.

Comments

  1. Vishal Duggal 2012-12-07

    We have never supported nesting animations and right now we have no plans to do so. Marking this ticket as hold.

JSON Source