{ "id": "116894", "key": "AC-2283", "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": "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": "2013-07-09T18:05:23.000+0000", "created": "2013-07-04T11:21:35.000+0000", "labels": [ "event", "eventlistener", "events", "longclick,", "scrollview" ], "versions": [], "issuelinks": [], "assignee": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:17.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": "The following doesn't work, while `longpress` does:\r\n\r\n{code:javascript}\r\nvar window = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white'\r\n});\r\nvar scrollView = Ti.UI.createScrollView({\r\n\tbackgroundColor : 'blue'\r\n});\r\n\r\nvar view = Ti.UI.createView({\r\n\theight : 100,\r\n\tbackgroundColor : 'red'\r\n});\r\nview.addEventListener('longclick', function() {\r\n\talert('hello world');\r\n});\r\n\r\nscrollView.add(view);\r\nwindow.add(scrollView);\r\n\r\nwindow.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Longclick event doesn't work inside a ScrollView", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK 3.1.1GA\r\nMac OS X", "comment": { "comments": [ { "id": "261096", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cannot reproduce on Samsung Galaxy S2 2.3.6 with Ti SDK 3.1.1 GA. The longclick event fires as expected, both inside and outside a scrollview.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-09T18:05:23.000+0000", "updated": "2013-07-09T18:05:23.000+0000" }, { "id": "261097", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Totally missed it was an Android-only event. Sorry for not including the device OS in the environment, or better... read the docs better.\n\nClose it.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-07-09T18:06:52.000+0000", "updated": "2013-07-09T18:06:52.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }