{ "id": "112821", "key": "TIMOB-13580", "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": "2013-04-17T19:14:34.000+0000", "created": "2013-04-13T22:05:11.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "regression" ], "versions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "27879", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94449", "key": "TIMOB-9944", "fields": { "summary": "iOS: Scroll click event hanging over in event firing for iOS tableview", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T23:02:24.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": "Placing a ScrollView inside a TableViewRow causes all click events to be suppressed. \r\n\r\nExpected: Clicking on the ScrollView inside the TableViewRow would trigger all the attached click listeners. \r\n\r\nResult: Nothing happens - the click event doesn't fire on the ScrollView, TableViewRow or TableView. Clicking outside the ScrollView on the TableViewRow does fire click event on TVR and TV. \r\n\r\nNotes: \r\n* When testing on 2.1.4.GA - Clicking on the ScrollView at least triggers the click event on the TableView and TableViewRow\r\n* When the ScrollView is .add to window, click handler on SV behaves as normal. \r\n\r\n\r\nPlease see attached app.js\r\n", "attachment": [ { "id": "37455", "filename": "app.js", "author": { "name": "meeech", "key": "meeech", "displayName": "Mitchell Amihod", "active": true, "timeZone": "America/New_York" }, "created": "2013-04-13T22:05:12.000+0000", "size": 776, "mimeType": "text/javascript" } ], "flagged": false, "summary": "iOS: ScrollViews inside TableViewRow supressing all click events", "creator": { "name": "meeech", "key": "meeech", "displayName": "Mitchell Amihod", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "meeech", "key": "meeech", "displayName": "Mitchell Amihod", "active": true, "timeZone": "America/New_York" }, "environment": "TiSDK 3.1.0-beta, 3.0.2GA\r\niOS 6.1 (and earlier)", "comment": { "comments": [ { "id": "247661", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Actually the behavior of 2.1.4 seems wrong to me... I don't see why you wouldn't want the touch events to take priority on the scroll view in order for it to capture the input for scrolling?\n\nAnyway, since I've confirmed it as a regression, I'll move to TiMob to get confirmation from our engineering team.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-15T23:11:04.000+0000", "updated": "2013-04-15T23:11:04.000+0000" }, { "id": "247678", "author": { "name": "meeech", "key": "meeech", "displayName": "Mitchell Amihod", "active": true, "timeZone": "America/New_York" }, "body": "Hi Daniel,\r\n\r\nActually, not sure what you mean by priority? Also not clear what seems wrong to you? My issue is no click event is firing on that scrollview, or the parent views. If I could attach a click listener to the SV, that would be fine too, since i could work around that. \r\n\r\nIn 2.1.4, you can still scroll the view like normal, but click event bubbles up to the table/table row. \r\n\r\nmy use case:\r\nThere is a table row which shows a list of tags. If there is more than the row contains, you can scroll horizontally to see them all. On Click, we open a window to allow user to edit tags.\r\n\r\n", "updateAuthor": { "name": "meeech", "key": "meeech", "displayName": "Mitchell Amihod", "active": true, "timeZone": "America/New_York" }, "created": "2013-04-16T00:34:35.000+0000", "updated": "2013-04-16T00:34:35.000+0000" }, { "id": "247808", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sorry Mitchell, like I say I don't believe the bubbling as occurs in 2.1.4 is the correct behavior, however the SV event should be firing when you click on it, that's right. So that's the issue here.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-16T17:55:29.000+0000", "updated": "2013-04-16T17:55:29.000+0000" }, { "id": "247812", "author": { "name": "meeech", "key": "meeech", "displayName": "Mitchell Amihod", "active": true, "timeZone": "America/New_York" }, "body": "no worries. Just trying to understand. \r\n\r\nIn light of the new bubbles property for events, i think keeping the bubbling behaviour would be useful (allows for delegate pattern) just set bubbles to false to stop it from bubbling up if that is someones prefered behaviour. Right now, putting click handler on the SV would be a workaround for me. basically will attach same handler x2 (once to table, once to sv) and detect if its the SV click and crawl up the parent chain to find the row. \r\n\r\nthanks.\r\n\r\n", "updateAuthor": { "name": "meeech", "key": "meeech", "displayName": "Mitchell Amihod", "active": true, "timeZone": "America/New_York" }, "created": "2013-04-16T18:02:09.000+0000", "updated": "2013-04-16T18:02:09.000+0000" }, { "id": "247814", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Yeah, I did try to use the new bubbleParent property, but that didn't work. You're right that it might be ideal to have the behavior affected by that property. It's still early days though, there are issues like TIMOB-13544 that we need to figure out first.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-16T18:10:46.000+0000", "updated": "2013-04-16T18:10:46.000+0000" }, { "id": "247980", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is a change as a result of the linked bug. Reverting that ticket would cause a much larger set of regressions.\r\n\r\nIt is suggested that using a single-tap listener on ScrollView will get you the desired behavior. Please let us know if that doesn't work as expected.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-17T19:14:35.000+0000", "updated": "2013-04-17T19:14:35.000+0000" }, { "id": "247988", "author": { "name": "meeech", "key": "meeech", "displayName": "Mitchell Amihod", "active": true, "timeZone": "America/New_York" }, "body": "ok.", "updateAuthor": { "name": "meeech", "key": "meeech", "displayName": "Mitchell Amihod", "active": true, "timeZone": "America/New_York" }, "created": "2013-04-17T19:28:03.000+0000", "updated": "2013-04-17T19:28:03.000+0000" }, { "id": "415199", "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:24.000+0000", "updated": "2017-03-22T23:02:24.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }