{ "id": "95041", "key": "TIMOB-9955", "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": "13574", "description": "Sprint 2012-15 Core", "name": "Sprint 2012-15 Core", "archived": true, "released": true, "releaseDate": "2012-07-30" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-04-01T17:47:29.000+0000", "created": "2012-07-12T14:04:59.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "module_scrollview", "parity", "qe-review", "qe-testadded" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "23060", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "100321", "key": "TIMOB-11820", "fields": { "summary": "Android: ScrollableView in ScrollView is not working", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "18767", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "92678", "key": "TIMOB-9341", "fields": { "summary": "Android: Support Scroll View canCancelEvents", "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 } } } } ], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-04-02T07:07:57.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": "ScrollView with a wrap view becomes unscrollable on android Ti SDK 2.1.0.GA. It works on Ti SDK 2.0.1.GA2. It works fine on iOS.\r\nh4. Repo Steps\r\n1. Run the below code in your app.js\r\n2. You can see the scrollView becomes unscrollable. \r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : 'white'\r\n }); \r\nvar scrollView = Ti.UI.createScrollView({\r\n top : 44,\r\n left : 0,\r\n right : 0,\r\n bottom : 0,\r\n showVerticalScrollIndicator : true,\r\n showHorizontalScrollIndicator : true,\r\n canCancelEvents : false,\r\n zIndex : 10\r\n});\r\n \r\nvar view = Ti.UI.createView({\r\n\tbackgroundColor:'blue',\r\n left : \"4%\",\r\n right : \"4%\",\r\n layout: 'vertical',\r\n top : 0\r\n});\r\n \r\nfor (var i = 0; i < 20; i++) {\r\n var v = Ti.UI.createLabel({\r\n \tbackgroundColor: 'green',\r\n height : 50,\r\n top : 50,\r\n text : i\r\n });\r\n view.add(v);\r\n};\r\n\r\ncontentHeight = 2050;\r\nscrollView.contentHeight = view.height = contentHeight;\r\n \r\nscrollView.add(view);\r\nwin.add(scrollView);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: ScrollView with a wrap view becomes unscrollable on android Ti 2.1", "creator": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "android 2.2.2\r\nLG Optimus V\r\nTi SDK 2.1.0.GA", "comment": { "comments": [ { "id": "203203", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The test example attached above works as expected.\r\nSetting \"canCancelEvents: false\" limits scroll touch area to 4% from left/right borders.\r\n", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-13T14:47:24.000+0000", "updated": "2012-07-13T14:47:24.000+0000" }, { "id": "209261", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR Ready: https://github.com/appcelerator/titanium_mobile/pull/2634\r\n", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-24T18:42:11.000+0000", "updated": "2012-07-24T18:42:11.000+0000" }, { "id": "209324", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "More detailed test steps:\r\n\r\n1. Launch the app.js above\r\n2. Long press either the blue background, or a green label, and then scroll up and down with the same press. (the view should not scroll)\r\n3. Try to scroll inside blue background without a long press, and it should scroll.\r\n\r\nThis behavior should match iOS.\r\n\r\n", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-25T10:50:50.000+0000", "updated": "2012-07-25T10:50:50.000+0000" }, { "id": "213781", "author": { "name": "rumbrasas", "key": "rumbrasas", "displayName": "Rima Umbrasas", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed with \r\nmobile sdk-2.2.0.v20120810080115\r\nTitanium Studio, build: 2.1.1.201207271312", "updateAuthor": { "name": "rumbrasas", "key": "rumbrasas", "displayName": "Rima Umbrasas", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-10T10:08:58.000+0000", "updated": "2012-08-10T10:08:58.000+0000" }, { "id": "215538", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Occurs on:\r\nTitanium SDK: 2.1.2.v20120816171609\r\nTitanium  Studio: 2.1.2.201208192014\r\nDevice:\r\nSamsung GALAXY Note (2.3.6)\r\n\r\nFixed with: SDK version: 2.2.0.v20120810080115", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-21T22:06:53.000+0000", "updated": "2012-08-21T22:06:53.000+0000" }, { "id": "230482", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have reverted the fix for this in https://github.com/appcelerator/titanium_mobile/pull/3558. For android, we actually block all events from any subview to the scroll view and it's the closest we can get to the iOS implementation since it just maps to a native property.\r\n\r\nI have documented that there may be a difference between iOS and Android in the docs in this PR. If you want the blue view to scroll for this test case, I would recommend not setting the 'canCancelEvents' property to false.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-07T23:08:02.000+0000", "updated": "2012-12-07T23:08:02.000+0000" }, { "id": "234139", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Scrollview is now scrollable.\r\nVerified with following env.\r\nTitanium SDK: 3.0.0.GA\r\nTitanium  Studio:3.0.1.201212181159\r\nDevice: LG-P970\tAndroid 2.2.2", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-14T02:31:20.000+0000", "updated": "2013-01-14T02:31:20.000+0000" }, { "id": "244866", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "ScrollView in not scrollable.\r\n\r\nTested on:\r\nDevice : Google Nexus 7, Android Version: 4.1\r\nSDK: 3.1.0.v20130331073351\r\nCLI version : 3.0.25-alpha\r\nOS : MAC OSX 10.7.5\r\n\r\n", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-04-01T10:06:13.000+0000", "updated": "2013-04-01T10:06:13.000+0000" }, { "id": "244926", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please read the comments before reopening. As I mentioned, it SHOULD be unscrollable if you specify 'canCancelEvents' to false. The docs have also been updated to reflect this.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-01T17:47:18.000+0000", "updated": "2013-04-01T17:47:18.000+0000" }, { "id": "245150", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "working as expected, Hence closing it.", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-04-02T07:07:57.000+0000", "updated": "2013-04-02T07:07:57.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }