{ "id": "83301", "key": "TIMOB-6414", "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": "2011-12-01T18:31:22.000+0000", "created": "2011-12-01T13:21:33.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "12570", "name": "Release 1.7.5", "archived": true, "released": true, "releaseDate": "2011-11-02" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [ { "id": "14032", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "78536", "key": "TIMOB-4841", "fields": { "summary": "Android: globalPoint is null for touchstart events for window and view", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-12-01T18:31:49.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 globalPoint/x/y properties of Titanium.UI.view's click event do not work.\r\n\r\nh4. Repro Steps\r\nCreate a project to run the following code.\r\n\r\nh4. Expected Result\r\nRunning the project with iPhone Simulator will see the x/y coordinates being printed out.\r\nh4. Actual Result\r\nNothing comes out in the console when running the same project on Android emulator.\r\n{code}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'#fff'\r\n});\r\n\r\nvar view = Ti.UI.createView();\r\n\r\nview.addEventListener('click', function(e){\r\n\t//Ti.API.info('globalPoint.x='+e.globalPoint.x);\r\n\t//Ti.API.info('globalPoint.y='+e.globalPoint.y);\r\n\tTi.API.info('x='+e.x);\r\n\tTi.API.info('y='+e.y);\r\n})\r\n\r\nwin.add(view);\r\nwin.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: The globalPoint/x/y properties of Titanium.UI.view's click event does not work", "creator": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android 2.2 emulator", "comment": { "comments": [ { "id": "174487", "author": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Duplicate with TIMOB-4841", "updateAuthor": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-01T14:08:26.000+0000", "updated": "2011-12-01T14:08:26.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }