{ "id": "63833", "key": "TIMOB-3201", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-08-31T13:57:00.000+0000", "created": "2011-04-15T03:39:18.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "android", "defect", "reported-1.6.1" ], "versions": [], "issuelinks": [ { "id": "20497", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "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": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } }, { "id": "33960", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "124061", "key": "TIDOC-1485", "fields": { "summary": "iOS: Events do not fire correctly in ListView ", "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": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T21:19:36.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": "{html}

Problem

\n

The \"touchstart\" and \"touchend\" events aren't firing on a table\nview.

\n

Tested On

\n

BROKEN on Titanium Mobile SDK 1.5.1, 1.5.2, 1.6.0, several\n1.7.0

\n

Sample Code

\n
\nvar win = Ti.UI.createWindow({ backgroundColor: '#000099' });\n\n// create table view data object\nvar data = [];\n\ndata[0] = Ti.UI.createTableViewRow({title:'Row 1',backgroundColor:'#900'});\ndata[1] = Ti.UI.createTableViewRow({title:'Row 2',backgroundColor:'#fff'});\ndata[2] = Ti.UI.createTableViewRow({title:'Row 3',backgroundColor:'#900'});\ndata[3] = Ti.UI.createTableViewRow({title:'Row 4',backgroundColor:'#fff'});\n\n// create table view\nvar tableview = Titanium.UI.createTableView({\n    data:data,\n    bottom:30,\n    left:20,\n    right:20,\n    height:178,\n    borderWidth:2,\n    borderRadius:10,\n    borderColor:'#222'\n});\n\n// create table view event listener\ntableview.addEventListener('touchstart', function(e)\n{\n    Ti.API.info('touchstart fired');\n});\n\n// create table view event listener\ntableview.addEventListener('touchend', function(e)\n{\n    Ti.API.info('touchend fired');\n});\n\n// add table view to the window\nwin.add(tableview);\n\nwin.open();\n
{html}", "attachment": [], "flagged": false, "summary": "Android: touchstart or touchend doesn't fire on tableview.", "creator": { "name": "johnscanlon", "key": "johnscanlon", "displayName": "John Scanlon", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "johnscanlon", "key": "johnscanlon", "displayName": "John Scanlon", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "130270", "author": { "name": "johnscanlon", "key": "johnscanlon", "displayName": "John Scanlon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Workaround

\n

I was playing around with this more and if you create a view\nthat is the width and height of each row and add it to each\ntableviewrow the touchstart and touchend get fired. This isn't\ndesireable since the properties for the tableviewrow are no longer\naccessable.

{html}", "updateAuthor": { "name": "johnscanlon", "key": "johnscanlon", "displayName": "John Scanlon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:39:18.000+0000", "updated": "2011-04-15T03:39:18.000+0000" }, { "id": "130271", "author": { "name": "joeientry", "key": "joeientry", "displayName": "Joe iEntry", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I'm having this issue as well. [can this be high priority?\n:)]

{html}", "updateAuthor": { "name": "joeientry", "key": "joeientry", "displayName": "Joe iEntry", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:39:19.000+0000", "updated": "2011-04-15T03:39:19.000+0000" }, { "id": "130272", "author": { "name": "joeientry", "key": "joeientry", "displayName": "Joe iEntry", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I'm using Ti Mobile 1.6.1 and Android 1.6. Using John's\nworkaround does work!

{html}", "updateAuthor": { "name": "joeientry", "key": "joeientry", "displayName": "Joe iEntry", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:39:19.000+0000", "updated": "2011-04-15T03:39:19.000+0000" }, { "id": "164190", "author": { "name": "johnk", "key": "johnk", "displayName": "John Kalberer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Why is this bug marked as trivial? I would think that having events fire correctly would be a high priority as it is a basic feature of any framework.", "updateAuthor": { "name": "johnk", "key": "johnk", "displayName": "John Kalberer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-26T14:23:21.000+0000", "updated": "2011-08-26T14:23:21.000+0000" }, { "id": "217233", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested on a Samsung Galaxy S2 using TiSDK 2.2.0v20120830102513, unable to reproduce the issue. Ticket marked as resolved. ", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-08-31T13:57:00.000+0000", "updated": "2012-08-31T13:57:00.000+0000" }, { "id": "414435", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced. ", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T21:19:36.000+0000", "updated": "2017-03-21T21:19:36.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }