{ "id": "81954", "key": "TIMOB-6304", "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": "2013-07-03T15:10:52.000+0000", "created": "2011-10-25T21:03:30.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api" ], "versions": [ { "id": "11971", "description": "iOS5 and select Android fixes", "name": "Release 1.7.3", "archived": true, "released": true, "releaseDate": "2011-10-18" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "30043", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "61643", "key": "TIMOB-1011", "fields": { "summary": "Android: Animations Cause the location of touch events to be incorrect", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "29239", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "115272", "key": "TIMOB-14063", "fields": { "summary": "Android: Slider touch events respond to their original location after transformation", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T22:10:19.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": "The problem is that when creating a transformation associated with a button, the event handler does not appear to work correctly. Apparently, the reason is because the event listener is being handled at the original location rather than the transformed location (see http://developer.appcelerator.com/question/127368/transform-problems-in-android#comment-101881). Below is a test case that causes the problem.\r\n\r\n{code:lang=javascript}\r\nvar win = Titanium.UI.createWindow({backgroundColor: 'white'});\r\nwin.open();\r\n \r\nvar viewPlace = Ti.UI.createButton({\r\n title: 'click to rotate',\r\n width: 200\r\n});\r\n \r\nviewPlace.addEventListener(\"click\", function(e) {\r\n alert(\"clicked\");\r\n viewPlace.transform = Ti.UI.create2DMatrix().rotate(90);\r\n});\r\n \r\nwin.add(viewPlace);\r\nwin.open();\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Button click event not working for transformation, due to handler acting on original rather than transformed location", "creator": { "name": "davidriggleman@gmail.com", "key": "davidriggleman@gmail.com", "displayName": "David Riggleman", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "davidriggleman@gmail.com", "key": "davidriggleman@gmail.com", "displayName": "David Riggleman", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "* Titanium Studio\r\n* Titanium SDK 1.7.3, 1.8.0 \r\n* Windows 7\r\n* Android Emulator", "comment": { "comments": [ { "id": "173968", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "native Android controls don't support this feature. Won't be able to fix until they do. ", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-24T12:35:25.000+0000", "updated": "2011-11-24T12:35:25.000+0000" }, { "id": "173969", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The controls actually transform and change position, but their touch events still respond to their original locations, not the new location. \r\n\r\nSo the controls transforming, but not handling events properly, is the expected behavior?", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-24T14:48:24.000+0000", "updated": "2011-11-24T14:48:24.000+0000" }, { "id": "251268", "author": { "name": "kronholm", "key": "kronholm", "displayName": "Bitfabrikken - Dan Wulff Kronholm", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Still not fixed in 3.1.0.. Will this ever be fixed/looked at?", "updateAuthor": { "name": "kronholm", "key": "kronholm", "displayName": "Bitfabrikken - Dan Wulff Kronholm", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-10T10:49:57.000+0000", "updated": "2013-05-10T10:49:57.000+0000" }, { "id": "260666", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "FYI, this is not supported (in Android) in pre-Honeycomb. It is supported in Honeycomb and later, and Titanium will support it for Honeycomb and later (there is a pull request for it already.)", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-07-02T21:57:50.000+0000", "updated": "2013-07-02T21:57:50.000+0000" }, { "id": "260749", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolving as duplicate of linked issue. Please follow along there.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-03T15:10:52.000+0000", "updated": "2013-07-03T15:10:52.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }