{ "id": "121419", "key": "AC-2661", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-10-26T20:23:15.000+0000", "created": "2013-10-21T08:21:23.000+0000", "labels": [ "3.1.3.GA", "event", "listview", "touchend" ], "versions": [], "issuelinks": [ { "id": "32823", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "117050", "key": "TIMOB-14510", "fields": { "summary": "iOS: touchstart or touchend event on a ListView template makes the app crash", "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": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:41:45.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": "Try a longpress and then release on a label in the listview. The longpress event registers fine, the touchend crashes the app. If you add onTouchstart=\"labelStart\" to the XML, the crash will occur on the touchstart event. The longpress event works fine. The problem can be tracked down to calls to handleControlEvents in TiUIView.m\r\n\r\nindex.xml:\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\r\n\r\n{code}\r\n\r\nindex.js:\r\n{code}\r\nfunction labelPressed(e){\r\n\tTi.API.info('longpress event: ' + JSON.stringify(e));\t\r\n}\r\n\r\nfunction labelEnd(e){\r\n\tTi.API.info('touchend event: ' + JSON.stringify(e));\t\t\r\n}\r\n\r\nfunction labelStart(e){\r\n\tTi.API.info('touchstart: ' + JSON.stringify(e));\r\n}\r\n\r\nvar data = [];\r\nfor (var i=0; i < 10; i++) {\r\n\tdata.push({testMsg: {text: 'Longpress and release - iOS crash on touchend'}});\r\n}\r\n\r\n$.ls.setItems(data);\r\n$.index.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: touchstart, touchend events on a view in ListView custom template crash app", "creator": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "subtasks": [], "reporter": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "environment": "3.1.3.GA SDK, iOS 7 simulator", "comment": { "comments": [ { "id": "275914", "author": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "updateAuthor": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2013-10-21T11:00:42.000+0000", "updated": "2013-10-21T11:00:42.000+0000" }, { "id": "280631", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "DUP of TIMOB-14510. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-11-21T23:34:37.000+0000", "updated": "2013-11-21T23:34:37.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }