{ "id": "63966", "key": "TIMOB-3334", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-06-07T22:49:54.000+0000", "created": "2011-04-15T03:42:26.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "defect", "rplist", "scrollview" ], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-07T22:49:54.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": "{html}
Problem
\r\nIf a scrollView is placed within another scrollView, the child\r\nscrollView will not scroll, but does receive the touchmove event.\r\nThis function works on iOS but not on Android.
\r\nTest Code
\r\nvar win = Titanium.UI.createWindow({
\r\nbackgroundColor:'#fff'
\r\n
\r\n}); var scrollView = Titanium.UI.createScrollView({
\r\ncontentWidth:'auto',\r\ncontentHeight:'auto',\r\ntop:0,\r\nshowVerticalScrollIndicator:true,\r\nshowHorizontalScrollIndicator:true
\r\n
\r\n}); var view = Ti.UI.createView({
\r\nbackgroundColor:'#336699',\r\nborderRadius:10,\r\nwidth:300,\r\nheight:2000,\r\ntop:10
\r\n
\r\n});
\r\nvar scrollView2 = Titanium.UI.createScrollView({
\r\ncontentWidth:'auto',\r\ncontentHeight:'auto',\r\nwidth:200,\r\nheight:200,\r\ntop:50,\r\nshowVerticalScrollIndicator:true,\r\nshowHorizontalScrollIndicator:true,\r\nscrollType:'vertical'
\r\n
\r\n}); var label = Ti.UI.createTextArea({
\r\nvalue:'This is my label.',\r\nheight:400,\r\nwidth:200,\r\nbackgroundColor:'#ccc'
\r\n
\r\n}); win.add(scrollView);
\r\nscrollView.add(view);
\r\nview.add(scrollView2);
\r\nscrollView2.add(label);
\r\nscrollView2.addEventListener('touchmove',function(){
\r\nalert('touchmove');
\r\n}); win.open();
Ticket Reference
\r\n