{ "id": "132503", "key": "TIMOB-17262", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2014-07-08T20:29:15.000+0000", "created": "2014-07-02T07:34:26.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-3.3.0" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T23:00:41.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": "The animating view has an issue when we click on it while it is in its last repeat cycle of animation and while it is reversing to original position.\r\n\r\nThis is a regression as the issue does not occur in 3.2.3.GA\r\nThe issue does not occur on Android.\r\n\r\nRefer to the attached video.\r\n\r\nSteps to Reproduce:\r\n1. Create an app with the code below.\r\n2. Build and launch the app on iOS device\r\n3. Click on red view. The red view has an animation repeat count of 3.\r\n4. Click again on the red view during its third repeat cycle of animation when it has just got to its maximum scaled size or when it is getting back to original position\r\n5. Click on blue view. The blue view has an animation repeat count of 2\r\n6. Click again on blue view in its last repeat of the animation when it has rotated and about to go back to original position.\r\n\r\nActual Result:\r\nAfter Step 4 and 6, the view seems to start the whole animation again but only with a limited animation.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor:'green'\r\n});\r\n \r\nvar box = Ti.UI.createView({\r\n backgroundColor : 'red',\r\n height : '150dp',\r\n width : '100dp',\r\n top: '50dp',\r\n overrideCurrentAnimation: true\r\n });\r\n \r\n box.addEventListener('click', function() {\r\n var matrix = Ti.UI.create2DMatrix().scale(1.5, 1.5);\r\n var a = Ti.UI.createAnimation({\r\n transform : matrix,\r\n duration : 500,\r\n autoreverse : true,\r\n repeat : 3\r\n });\r\n box.animate(a);\r\n });\r\n win.add(box);\r\n \r\n var box2 = Ti.UI.createView({\r\n backgroundColor: \"blue\",\r\n top: \"285dp\",\r\n height: \"100dp\",\r\n width: \"100dp\",\r\n overrideCurrentAnimation: false\r\n });\r\n \r\n box2.addEventListener(\"click\", function() {\r\n var matrix = Ti.UI.create2DMatrix().rotate(97);\r\n box2.animate({transform: matrix, duration: 500, autoreverse: true, repeat: 2});\r\n });\r\n win.add(box2);\r\nwin.open();\r\n{code}", "attachment": [ { "id": "49440", "filename": "AnimationIssue.mov", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-02T07:34:26.000+0000", "size": 1068874, "mimeType": "video/quicktime" } ], "flagged": false, "summary": "iOS: Issue with view animation when clicked on animating view in its last repeat cycle", "creator": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "AppC Studio: 3.3.0.201406271159\r\nSDK: 3.3.0.v20140701104113\r\nCLI: 3.3.0-rc4\r\nAlloy: 1.4.0-rc3\r\nACS: 1.0.14\r\nDevice: iPhone4 (v7.1), iPhone Simulator 7.1", "closedSprints": [ { "id": 149, "state": "closed", "name": "2014 Sprint 14 SDK", "startDate": "2014-07-07T21:48:52.340Z", "endDate": "2014-07-19T00:00:00.000Z", "completeDate": "2014-07-21T15:58:32.928Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "312864", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue is reproducible on:\r\nMac OSX 10.9.4\r\nAppcelerator Studio, build: 3.3.0.201407031747\r\nTitanium SDK, build: 3.3.0.v20140707105712\r\nTitanium CLI, build: 3.3.0-rc4\r\nAlloy: 1.4.0-rc4\r\niOS Device: iPhone 5S (7.1.1)\r\n\r\nAnimation restarts if clicked again before finishing.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-08T17:55:42.000+0000", "updated": "2014-07-08T17:55:42.000+0000" }, { "id": "312896", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This is not a regression.\r\nThis behavior is reproducible all the way back to 3.1.4\r\niOS lets you chain animations without waiting for the first one to finish. In that case we start the second animation from the views current state.\r\n\r\nChanging this behavior will cause regressions in other areas. Marking this as wont fix.\r\n\r\n", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-07-08T20:29:00.000+0000", "updated": "2014-07-08T20:29:00.000+0000" }, { "id": "415192", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as \"Won't Fix\".", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T23:00:41.000+0000", "updated": "2017-03-22T23:00:41.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }