{ "id": "97657", "key": "TIMOB-10042", "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": [ { "id": "13574", "description": "Sprint 2012-15 Core", "name": "Sprint 2012-15 Core", "archived": true, "released": true, "releaseDate": "2012-07-30" }, { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-20T13:59:06.000+0000", "created": "2012-07-19T13:17:59.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "module_animation", "qe-testadded", "regression" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2013-05-07T00:07:40.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "If you animate a view to a new location, it's touch coordinates stay back at the old location. \r\n\r\nExample is this simple app.js:\r\n\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({fullscreen: false, backgroundColor:\"#444\"});\r\nvar btn = Ti.UI.createButton({\r\n\ttitle: \"Click to move\",\r\n\theight: 48, top: 16, left: 16, width: \"auto\"\r\n});\r\nwin.add(btn);\r\n\r\nbtn.addEventListener(\"click\", function() {\r\n\tvar newLeft = Math.floor(Math.random() * 200);\r\n\tvar newTop = Math.floor(Math.random() * 200);\r\n\tbtn.animate({\r\n\t\tleft: newLeft,\r\n\t\ttop: newTop,\r\n\t\tduration: 500\r\n\t});\r\n});\r\nwin.open();\r\n{code}\r\n\r\nRun that app, and click the button. \r\n\r\nActual Behavior: When you click it, the button will move somewhere random. Touch the button again, and it won't click. But touch back to the area of the window where the button _was before the animation_, and the button will move again.\r\n\r\nExpected Behavior: The button's click event listener should fire when you click the button no matter where it is.", "attachment": [ { "id": "29932", "filename": "animate.zip", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-07-20T11:23:51.000+0000", "size": 3135764, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Animation: Views moved by animation no longer respond to touches (touch area is original location, not new location)", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium 2.2.0, Android (any version), any desktop OS.", "comment": { "comments": [ { "id": "208703", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "h3. Testing Notes\r\n\r\n* Please use attached animation test application because you'll need to test for regressions of older fixed tickets. Unzip animate.zip (attached) and use that app.\r\n\r\n* Test on 2.2/2.3 device (one or the other, both not needed IMO -- important thing is one pre-honeycomb device), a Honeycomb device and a post-Honeycomb (ICS or JB) device. So three devices total.\r\n\r\n* When you run the test app, the test for this item will be on top (TIMOB-10042). Run that test first.\r\n\r\n* In the TIMOB-10042 test, when you click the button it will move. When testing the fail case, the button will not be clickable in its new location. When testing the fixed branch, it should remain clickable no matter where it runs to.\r\n\r\n* Run the other tests as well to check for regressions. Each test has a label containing instructions.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-07-20T11:21:02.000+0000", "updated": "2012-07-20T14:48:52.000+0000" }, { "id": "209079", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "View after animation, responds to touch at new location and not the older/original location. Verified On:\r\nTitanium Studio: 2.1.1.201207171343\r\nTitanium SDK: 2.1.1.v20120723131610\r\nAndroid Device: LG P970 (v2.2), Samsung Tab (v3.2), Galaxy Nexus (v4.0.2)", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-24T04:57:59.000+0000", "updated": "2012-07-24T04:57:59.000+0000" }, { "id": "250458", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "This may be more trouble than it's worth. cf. TIMOB-6852. \r\n\r\nIt's a well-understood fact in the native Android development world that the touch target does not move with translate animations pre-Honeycomb.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-05-07T00:07:40.000+0000", "updated": "2013-05-07T00:07:40.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }