{ "id": "81200", "key": "TIMOB-5459", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-06-15T18:49:24.000+0000", "created": "2011-10-06T11:46:58.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "addeventlistener", "animate", "ios", "transition" ], "versions": [ { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-15T18:49:24.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "1) Add the following code to a new projects app.js\r\n{code}\r\nvar win = Titanium.UI.createWindow({ \r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar view = Titanium.UI.createView({\r\n backgroundColor:'red'\r\n});\r\nvar animation = Titanium.UI.createAnimation();\r\nanimation.backgroundColor = 'black';\r\nanimation.duration = 2000;\r\nanimation.addEventListener('complete',function()\r\n{\r\n animation.removeEventListener('complete',this);\r\n animation.backgroundColor = 'orange';\r\n view.animate(animation);\r\n});\r\nview.animate(animation);\r\n\r\nwin.add(view);\r\nwin.open();\r\n{code}\r\n2) Run the application\r\n\r\nExpected result:\r\nThe view will animate from red to black to orange.\r\nActual results:\r\nThe view animates from red to black. It never transitions to orange.\r\n\r\nNotes:\r\nThe code sample is from the following doc: http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.Animation-object\r\n\r\nHere is another example which is perhaps easier to see:\r\n{code}\r\nvar win = Titanium.UI.createWindow({ \r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar view = Titanium.UI.createView({\r\n backgroundColor:'white'\r\n});\r\nvar animation = Titanium.UI.createAnimation();\r\nanimation.backgroundColor = 'red';\r\nanimation.duration = 4000;\r\nanimation.addEventListener('complete',function()\r\n{\r\n animation.removeEventListener('complete',this);\r\n animation.backgroundColor = 'black';\r\n view.animate(animation);\r\n});\r\nview.animate(animation);\r\n\r\nwin.add(view);\r\nwin.open();\r\n{code}\r\n\r\nHere the view should go from white to red to black, but only goes from white to red.", "attachment": [], "flagged": false, "summary": "iOS: Animation applied to a view is not properly transitioning when addEventListener is applied", "creator": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iPod 4.3.3, SDK 1.8.0.v20111006001414, Titanium Studio build: 1.0.4.201108101535", "comment": { "comments": [ { "id": "422088", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed and lack of progress in the past few years. Any problems, please file a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-15T18:49:24.000+0000", "updated": "2017-06-15T18:49:24.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }