{ "id": "80798", "key": "TIMOB-5401", "fields": { "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true }, "parent": { "id": "94534", "key": "TIMOB-9903", "fields": { "summary": "Ti API: Platforms need to achieve parity for the event system", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-08-09T11:56:56.000+0000", "created": "2011-10-02T23:04:06.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [ { "id": "19803", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "98953", "key": "TIMOB-10372", "fields": { "summary": "TiAPI: event system: Bubble architecture", "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": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } }, { "id": "13062", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "81110", "key": "TIMOB-5427", "fields": { "summary": "allow preventDefault method to work on native UI elements", "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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "19814", "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 } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T22:08:12.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": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "Would like the ability to control event propagation\r\n\r\nh4. Example\r\nWould like to be able to click a button that is on a tableViewRow and not have that click event propagated to the row. Do not want to disable the row, still want to be able to click the row directly. Not just for buttons, a button is just an example.\r\n\r\nh4. Repro Case\r\nStep 1: run the code below\r\nStep 2: click on the button\r\nStep 3: notice that the click event is propagated to the row and the row becomes selected\r\n\r\n{code:title=app.js}\r\n\tvar win = Ti.UI.createWindow({\r\n\t\tbackgroundColor : 'white',\r\n\t\tfullscreen : true\r\n\t});\r\n\tvar data = [];\r\n\tvar row = Ti.UI.createTableViewRow({\r\n\t\trow: 50\r\n\t});\r\n\tvar button = Ti.UI.createButton({\r\n\t\ttitle: 'test',\r\n\t\theight: 30,\r\n\t\twidth: 60,\r\n\t\tleft: 10\r\n\t});\r\n\trow.add(button);\r\n\tdata.push(row);\r\n\r\n\tvar tableView = Ti.UI.createTableView({\r\n\t\tdata : data\r\n\t});\r\n\ttableView.addEventListener('click', function(e) {\r\n\t\tTi.API.info(\"click tableView\");\r\n\t});\r\n\twin.add(tableView);\r\n\twin.open();\r\n{code}\r\n\r\nh4. Associated Helpdesk Ticket\r\nhttp://appc.me/c/APP-368132", "attachment": [], "flagged": false, "summary": "Control of Event Propagation", "creator": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 1.7.2\r\n", "comment": { "comments": [ { "id": "173872", "author": { "name": "jameswise@gmail.com", "key": "jameswise@gmail.com", "displayName": "James Wise", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This feature would help me - got a scrollview nested in a scrollableview that intermittently crashes the app, even when checking for which view fired the 'scroll' event.", "updateAuthor": { "name": "jameswise@gmail.com", "key": "jameswise@gmail.com", "displayName": "James Wise", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-23T09:09:37.000+0000", "updated": "2011-11-23T09:09:37.000+0000" }, { "id": "213605", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving issue to bubbling spec.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-09T11:56:47.000+0000", "updated": "2012-08-09T11:56:47.000+0000" }, { "id": "414049", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T22:08:12.000+0000", "updated": "2017-03-20T22:08:12.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }