{ "id": "142145", "key": "TIMOB-18298", "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": null, "resolutiondate": null, "created": "2014-12-30T09:51:00.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "qe-3.5.0" ], "versions": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:50.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "This is not a regression as it is also reproducible with titanium sdk 3.4.1\r\n\r\nWhen the autoreverse property's value is changed from false to true, it prevents the animation from occurring after the change in value. \r\n\r\nSteps to reproduce:\r\n1. copy the following code into app.js and run on device\r\n{code}\r\n\r\n\r\n var win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n });\r\n var transform = Ti.UI.create2DMatrix().rotate(90);\r\n\r\n var v = Ti.UI.createView({\r\n right: \"10dp\",\r\n width: \"100dp\",\r\n height: \"100dp\",\r\n top: \"10dp\",\r\n backgroundColor: \"red\"\r\n });\r\n\r\n win.add(v);\r\n\r\n \r\n var reverse = false;\r\n\r\n v.addEventListener(\"click\", function() {\r\n\r\n\t\tTi.API.info(\"Value of reverse\" + reverse);\r\n v.animate({\r\n transform: transform,\r\n duration: 500,\r\n autoreverse: reverse,\r\n repeat: 2\r\n });\r\n \r\n reverse= !reverse;\r\n });\r\n\r\n win.open();\r\n\r\n{code}\r\n\r\n2. Click on the red square \r\n3. Click again on the red square\r\n\r\nActual Results:\r\n2. The red square is animated, and the value of reverse printed on console will be 'false'\r\n3. The red square does not animate/move anymore, the value of reverse printed on console is 'true'\r\n\r\nExpected Results:\r\n2. The red square is animated, and the value of reverse printed on console will be 'false'\r\n3. The red square should be animated, the value of reverse printed on console is 'true'", "attachment": [], "flagged": false, "summary": "iOS: changing autoreverse value to true from false stops animation", "creator": { "name": "vchidambaram", "key": "vchidambaram", "displayName": "Visalakshi Chidambaram", "active": true, "timeZone": "Asia/Shanghai" }, "subtasks": [], "reporter": { "name": "vchidambaram", "key": "vchidambaram", "displayName": "Visalakshi Chidambaram", "active": true, "timeZone": "Asia/Shanghai" }, "environment": "Titanium SDK: 3.5.0.v20141222103320\r\nAppc-Studio: 3.4.1.201410281743\r\nTitanium CLI: 3.4.1\r\nAlloy : 1.5.1 GA \r\nXcode : 6.1 \r\nOS: OSX 10.10.1 \r\nDevice : iPad Air 2 (iOS 8.1)", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }