{ "id": "104312", "key": "TIMOB-11668", "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": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15274", "description": "2013 Sprint 06 API", "name": "2013 Sprint 06 API", "archived": true, "released": true, "releaseDate": "2013-03-25" }, { "id": "14816", "description": "2013 Sprint 06", "name": "2013 Sprint 06", "archived": true, "released": true, "releaseDate": "2013-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-03-20T05:24:35.000+0000", "created": "2012-11-02T11:39:04.000+0000", "priority": null, "labels": [ "android", "clickEvent", "exalture", "qe-testadded", "scrollview" ], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2013-09-25T06:43:23.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "When a scroll view with an other view is added to a window. The Scroll view does not listen to the event. If you click on the view inside scrollview then both the view and scrollview will get the click event, but if you click on just the scroll view, the scrollview is not getting any click event. This issue is happening only in Android. It works properly in iPhone.\r\n\r\nh4.Steps to Reproduce:\r\n1. Load the below app.js\r\n2. Click on the red view (The click event of both view and scrollview is getting called)\r\n3. Click on the yellow view (The click event of the scrollview is not getting called)\r\n\r\napp.js:\r\n{code}\r\n\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'white'\r\n});\r\n\r\nvar self = Ti.UI.createView({\r\n\tleft : 0,\r\n\ttop : 0,\r\n\twidth : '50%',\r\n\theight : '50%',\r\n\tbackgroundColor : 'red'\r\n});\r\n\r\nself.addEventListener('click', function(e) {\r\n\tTi.API.info(\"View has been clicked\");\r\n});\r\n\r\nvar scrollbar = Ti.UI.createScrollView({\r\n\tleft : 0,\r\n\ttop : 0,\r\n\twidth : '100%',\r\n\theight : '100%',\r\n\tbackgroundColor : 'yellow'\r\n});\r\n\r\nscrollbar.addEventListener('click', function(e) {\r\n\tTi.API.info(\"Scrollbar has been clicked\");\r\n});\r\n\r\nscrollbar.add(self);\r\n\r\n\r\nwin.add(scrollbar);\r\nwin.open();\r\n{code}\r\n\r\nTested Devices: HTC Sense Android v2.3.3\r\n", "attachment": [ { "id": "33146", "filename": "zTouchTest.zip", "author": { "name": "soumyakantikar", "key": "soumyakantikar", "displayName": "Soumya Kanti Kar", "active": true, "timeZone": "America/Havana" }, "created": "2012-11-02T11:39:04.000+0000", "size": 754747, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Scrollview does not generate click events", "creator": { "name": "soumyakantikar", "key": "soumyakantikar", "displayName": "Soumya Kanti Kar", "active": true, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "soumyakantikar", "key": "soumyakantikar", "displayName": "Soumya Kanti Kar", "active": true, "timeZone": "America/Havana" }, "environment": "Titanium SDK Version 2.1.3GA\r\nPlatform OS: Android\r\nPlatform OS Version: 2.3.3 (GB), 4.0.4 (ICS)\r\nDevice details: Emulator, Samsung Galaxy, Samsung Galaxy S2\r\nHost Operating System: Windows 7\r\nTitanium Studio Build: 2.0.1.201204132053", "comment": { "comments": [ { "id": "240902", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The problem reproduces with release 3.0.2 and master release 3.1.0\n\ntested on\n\nTitanium Studio, build: 3.0.2.201302191606\nTitanium SDK version: 3.1.0 \nTitanium SDK version: 3.0.2 \nDevice: Samsung galaxy s duos Android version: 4.0.4\nAndroid Emulator: Android SDK version: 2.2", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-06T06:22:43.000+0000", "updated": "2013-03-06T06:22:43.000+0000" }, { "id": "241323", "author": { "name": "kow", "key": "kow", "displayName": "Tibor Szasz", "active": true, "timeZone": "Europe/Berlin" }, "body": "I can confirm it. Is there a workaround available?", "updateAuthor": { "name": "kow", "key": "kow", "displayName": "Tibor Szasz", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-03-08T11:26:36.000+0000", "updated": "2013-03-08T11:26:36.000+0000" }, { "id": "241775", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "\r\nhttps://github.com/appcelerator/titanium_mobile/pull/3956", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-03-12T17:06:46.000+0000", "updated": "2013-03-12T17:06:46.000+0000" }, { "id": "243129", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Environment used for verification -\r\nTitanium SDK: 3.1.0.v20130319225749\r\nTitanium  Studio:3.0.2.201302151605\r\nDevice: Samsung GALAXY Note (2.3.6),LG-P970 Android 2.2.2 and Nexus 7 Android 4.1", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-20T11:31:52.000+0000", "updated": "2013-03-20T11:31:52.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }