{ "id": "84119", "key": "TIMOB-6793", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-07-19T15:48:05.000+0000", "created": "2011-12-20T15:16:15.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [ { "id": "19007", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "97673", "key": "TIMOB-10047", "fields": { "summary": "iOS: Animation \"autoreverse\" does not reverse all properties", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T21:31:15.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": "When I create an animation that specifies both {{backgroundColor}} and {{autoreverse}}, it animates as expected, but when the animation completes the view's background color reverts to the background color assigned to the animation, not the view's original color. Consider the following code:\r\n\r\n{{app.js}}\r\n{code}\r\n\r\nvar win1 = Ti.UI.createWindow({backgroundColor: \"white\"});\r\nvar view = Ti.UI.createView({height: 100, width: 100, backgroundColor: \"green\"});\r\nwin1.add(view);\r\nwin1.open();\r\n\r\nvar matrix = Ti.UI.create2DMatrix();\r\nmatrix = matrix.rotate(45);\r\nmatrix = matrix.scale(1.5, 1.5);\r\nview.addEventListener('click', function(e) {\r\n\tview.animate({ autoreverse: true, \r\n\t\ttransform: matrix, duration: 500, backgroundColor: 'red'});\r\n});\r\n{code}\r\nWhen I click the green view, it animates to red, then back to green. But as soon as\r\nthe animation completes, the view switches back to red.\r\n\r\nExpected behavior:\r\n\r\nView stays green after animation completes.\r\n", "attachment": [], "flagged": false, "summary": "iOS: Animation with autoreverse sets color incorrectly on completion", "creator": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "208543", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Marking as a dupe in favor of more comprehensive bug TIMOB-10047.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-19T15:48:05.000+0000", "updated": "2012-07-19T15:48:05.000+0000" }, { "id": "410598", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T21:31:15.000+0000", "updated": "2017-03-09T21:31:15.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }