{ "id": "81653", "key": "AC-3065", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2011-10-20T13:10:38.000+0000", "created": "2011-10-17T08:58:26.000+0000", "labels": [ "android", "mobilesdk" ], "versions": [], "issuelinks": [], "assignee": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "updated": "2016-03-08T07:48:06.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Given the following program\r\n\r\n\r\n{code:title=app.js|borderStyle=solid}\r\nvar win = Titanium.UI.createWindow({ \r\n title:'Window',\r\n backgroundColor:'#fff',\r\n fullscreen: true\r\n});\r\n\r\n\r\nvar tableData=[];\r\n\r\nvar row = Ti.UI.createTableViewRow({\r\n\tclassName: \"grid\",\r\n height: 120\r\n});\r\n\r\nvar cell = Ti.UI.createView({\r\n\t\r\n\twidth: 'auto',\r\n\theight: '120'\r\n\r\n});\r\nvar label = Ti.UI.createLabel({\r\n\twidth: 'auto',\r\n\theight:'auto',\r\n\ttextAlign: 'center',\r\n\ttext: 'Hello, World!',\r\n\ttouchEnabled:false\r\n}) \r\n\r\ncell.add(label);\r\n\r\nrow.add(cell);\r\n\r\ntableData.push(row);\r\n\r\nvar tv = Ti.UI.createTableView({\r\ndata: tableData\r\n});\r\n\r\ntv.addEventListener('click',function(e){\r\n\tTi.API.info(JSON.stringify(e.source));\r\n});\r\n\r\n\r\ntv.addEventListener('longclick',function(e){\r\n\tTi.API.info(JSON.stringify(e.source));\r\n\t\r\n});\r\nwin.add(tv);\r\nwin.open();\r\n{code}\r\n\r\n'click' event handler receives \"[Ti.UI.View]\" as source\r\n'longclick' event handler receives \"[Ti.UI.TableView]\" as source\r\n", "attachment": [], "flagged": false, "summary": "Android - click and longclick handlers for TableView receive different event objects", "creator": { "name": "steenhive", "key": "steenhive", "displayName": "Steen Hive", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "steenhive", "key": "steenhive", "displayName": "Steen Hive", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "MobileSDK CI build 1.8.0.v20111006001414", "comment": { "comments": [ { "id": "169902", "author": { "name": "adecena", "key": "adecena", "displayName": "Anthony Decena", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thank you for raising this ticket. If this is still an issue, then we need all the information listed in the [Jira Ticket Checklist|http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-Summary%3AJiraTicketChecklist] in order to accept the ticket.\r\n\r\nOnce the ticket is complete, we will look into moving it to the main project.\r\n\r\nThank you.", "updateAuthor": { "name": "adecena", "key": "adecena", "displayName": "Anthony Decena", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-20T13:10:15.000+0000", "updated": "2011-10-20T13:10:15.000+0000" }, { "id": "183548", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Closing due to inactivity. If this issue still exists, please raise a new ticket, including all the information in the [JIRA Ticket Checklist|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist] to ensure that we can escalate it quickly. Read [How to Submit a Bug Report|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report] if you have not read it before, and always start a ticket using the [JIRA Ticket Template|https://wiki.appcelerator.org/display/guides/JIRA+Ticket+Template].\r\n\r\nThanks in advance", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-02-17T02:23:06.000+0000", "updated": "2012-02-17T02:23:06.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }