{ "id": "127301", "key": "TIMOB-16561", "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": "2014-03-17T17:15:57.000+0000", "created": "2014-03-06T09:15:19.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "supportTeam" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" }, { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T23:02:39.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h2. Description\r\nI have a horizontal scrollview as the first row in a tableView. This scrollview has a click event. The click event works fine on start.\r\nBut if I scroll the tableView and the first row (scrollview) scrolls out of the iPad viewport, the click event stops responding.\r\n\r\nh2. Steps to Reproduce\r\n1. Create the project with below sample code\r\n2. Run the application\r\n3. Click on first row which is scroll view\r\n\r\nActual result:\r\nNothing happened\r\n\r\nExpected result:\r\nClick event should get fire\r\n\r\nh2. Test Case\r\n{code}\r\nTi.UI.backgroundColor = 'white';\r\nvar win = Ti.UI.createWindow({\r\n\ttop : 20\r\n});\r\n\r\nvar table = Ti.UI.createTableView();\r\n\r\nvar tableData = [];\r\n\r\nvar row1 = Ti.UI.createTableViewRow({\r\n\theight : 100,\r\n\ttitle : 'row1',\r\n\ttouchEnabled : false\r\n});\r\n\r\nvar scrollView = Ti.UI.createScrollView({\r\n\tbackgroundColor : 'yellow',\r\n\ttouchEnabled : true,\r\n\tbubbleParent : true\r\n});\r\n\r\nscrollView.addEventListener('click', function() {\r\n\tTi.API.info('SV CLICKED');\r\n});\r\n\r\ntable.addEventListener('click', function(e) {\r\n\tTi.API.info('ROW CLICKED' + JSON.stringify(e));\r\n});\r\nvar view = Ti.UI.createView({\r\n\tbackgroundColor : '#336699',\r\n\tborderRadius : 2,\r\n\ttop : 5,\r\n\tleft : 1500,\r\n\twidth : 50,\r\n\theight : 50\r\n});\r\n\r\nview.addEventListener('click', function() {\r\n\tTitanium.API.info('View Clicked');\r\n});\r\nscrollView.add(view);\r\n\r\nrow1.add(scrollView);\r\n\r\ntableData.push(row1);\r\n\r\nfor ( i = 2; i <= 10; i++) {\r\n\tvar row = Ti.UI.createTableViewRow({\r\n\t\theight : 100,\r\n\t\ttitle : 'row ' + i\r\n\t});\r\n\r\n\ttableData.push(row);\r\n\r\n}\r\ntable.setData(tableData);\r\n\r\nwin.add(table);\r\nwin.open();\r\n\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Click event on TableViewRow inside a ScrollView does not fire if scrolled out of viewport", "creator": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS : 7.0\r\nDevice : iPad/iPhone Simulator\r\nMac OSX : 10.9.1", "comment": { "comments": [ { "id": "297583", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is considered unsupported behavior, so a \"Won't Fix.\"", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-17T17:15:49.000+0000", "updated": "2014-03-17T17:15:49.000+0000" }, { "id": "415200", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as \"Won't Fix\".", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T23:02:39.000+0000", "updated": "2017-03-22T23:02:39.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }