{ "id": "100455", "key": "TIMOB-10771", "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": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "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-03-18T13:24:01.000+0000", "created": "2012-09-04T17:39:52.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "parity" ], "versions": [ { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" } ], "issuelinks": [], "assignee": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T21:21:05.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": "In a Scroll view if the canCancelEvents property is set to false then the scroll event has some issue in getting fired. Sometimes it does not fire at all. Once in five times it works.\r\n\r\nSteps to reproduce:\r\n1. Load the app\r\n2. Try to scroll the horizontal view.\r\n\r\nExpected: the horizontal and Vertical view should scroll in the same way but they do not. Because the vertical Scroll view has the canCancelEvent property set as true.\r\n\r\nThis works fine on iOS.\r\n\r\nSample app.js code:\r\n\r\n{code}\r\nvar win = Titanium.UI.createWindow();\r\nwin.backgroundColor = '#000';\r\n\r\nvar leftImage = Ti.UI.createView({\r\n\tbackgroundImage:'../images/icon_arrow_left.png',\r\n\theight:30,\r\n\twidth:30,\r\n\ttop:18,\r\n\tleft:5,\r\n\tvisible:false\r\n});\r\nwin.add(leftImage);\r\nvar rightImage = Ti.UI.createView({\r\n\tbackgroundImage:'../images/icon_arrow_right.png',\r\n\theight:30,\r\n\twidth:30,\r\n\ttop:18,\r\n\tright:5\r\n});\r\nwin.add(rightImage);\r\n\r\n//\r\n// HORIZONTAL SCROLLING TABS\r\n//\r\nvar scrollView = Titanium.UI.createScrollView({\r\n\tcontentWidth:500,\r\n\tcontentHeight:50,\r\n\ttop:10,\r\n\theight:50,\r\n\twidth:230,\r\n\tborderRadius:10,\r\n\tbackgroundColor:'#13386c',\r\n\tcanCancelEvents:false\r\n\r\n});\r\n\r\nscrollView.addEventListener('scroll', function(e)\r\n{\r\n\tTi.API.info('x ' + e.x + ' y ' + e.y);\r\n\r\n\tif (e.x > 50)\r\n\t{\r\n\t\tleftImage.show();\r\n\t}\r\n\telse\r\n\t{\r\n\t\tleftImage.hide();\r\n\t}\r\n\tif (e.x < 130)\r\n\t{\r\n\t\trightImage.show();\r\n\t}\r\n\telse\r\n\t{\r\n\t\trightImage.hide();\r\n\t}\r\n\r\n});\r\n\r\nwin.add(scrollView);\r\n\r\nvar view1 = Ti.UI.createView({\r\n\tbackgroundColor:'#336699',\r\n\tborderRadius:20,borderWidth:1,borderColor:'#336699',\r\n\twidth:40,\r\n\theight:40,\r\n\tleft:10\r\n});\r\nscrollView.add(view1);\r\nvar l1 = Ti.UI.createLabel({\r\n\ttext:'1',\r\n\tfont:{fontSize:13},\r\n\tcolor:'#fff',\r\n\twidth:'auto',\r\n\ttextAlign:'center',\r\n\theight:'auto'\r\n});\r\nview1.add(l1);\r\n\r\nvar view2 = Ti.UI.createView({\r\n\tbackgroundColor:'#336699',\r\n\tborderRadius:20,borderWidth:1,borderColor:'#336699',\r\n\twidth:40,\r\n\theight:40,\r\n\tleft:60\r\n});\r\nscrollView.add(view2);\r\nvar l2 = Ti.UI.createLabel({\r\n\ttext:'2',\r\n\tfont:{fontSize:13},\r\n\tcolor:'#fff',\r\n\twidth:'auto',\r\n\ttextAlign:'center',\r\n\theight:'auto'\r\n});\r\nview2.add(l2);\r\n\r\nvar view3 = Ti.UI.createView({\r\n\tbackgroundColor:'#336699',\r\n\tborderRadius:20,borderWidth:1,borderColor:'#336699',\r\n\twidth:40,\r\n\theight:40,\r\n\tleft:110\r\n});\r\nscrollView.add(view3);\r\n\r\nvar l3 = Ti.UI.createLabel({\r\n\ttext:'3',\r\n\tfont:{fontSize:13},\r\n\tcolor:'#fff',\r\n\twidth:'auto',\r\n\ttextAlign:'center',\r\n\theight:'auto'\r\n});\r\nview3.add(l3);\r\n\r\nvar view4 = Ti.UI.createView({\r\n\tbackgroundColor:'#336699',\r\n\tborderRadius:20,borderWidth:1,borderColor:'#336699',\r\n\twidth:40,\r\n\theight:40,\r\n\tleft:160\r\n});\r\nscrollView.add(view4);\r\n\r\nvar l4 = Ti.UI.createLabel({\r\n\ttext:'4',\r\n\tfont:{fontSize:13},\r\n\tcolor:'#fff',\r\n\twidth:'auto',\r\n\ttextAlign:'center',\r\n\theight:'auto'\r\n});\r\nview4.add(l4);\r\n\r\nvar view5 = Ti.UI.createView({\r\n\tbackgroundColor:'#336699',\r\n\tborderRadius:20,borderWidth:1,borderColor:'#336699',\r\n\twidth:40,\r\n\theight:40,\r\n\tleft:210\r\n});\r\nscrollView.add(view5);\r\n\r\nvar l5 = Ti.UI.createLabel({\r\n\ttext:'5',\r\n\tfont:{fontSize:13},\r\n\tcolor:'#fff',\r\n\twidth:'auto',\r\n\ttextAlign:'center',\r\n\theight:'auto'\r\n});\r\nview5.add(l5);\r\n\r\nvar view6 = Ti.UI.createView({\r\n\tbackgroundColor:'#336699',\r\n\tborderRadius:20,borderWidth:1,borderColor:'#336699',\r\n\twidth:40,\r\n\theight:40,\r\n\tleft:260\r\n});\r\nscrollView.add(view6);\r\n\r\nvar l6 = Ti.UI.createLabel({\r\n\ttext:'6',\r\n\tfont:{fontSize:13},\r\n\tcolor:'#fff',\r\n\twidth:'auto',\r\n\ttextAlign:'center',\r\n\theight:'auto'\r\n});\r\nview6.add(l6);\r\n\r\nvar view7 = Ti.UI.createView({\r\n\tbackgroundColor:'#336699',\r\n\tborderRadius:20,borderWidth:1,borderColor:'#336699',\r\n\twidth:40,\r\n\theight:40,\r\n\tleft:310\r\n});\r\nscrollView.add(view7);\r\n\r\nvar l7 = Ti.UI.createLabel({\r\n\ttext:'7',\r\n\tfont:{fontSize:13},\r\n\tcolor:'#fff',\r\n\twidth:'auto',\r\n\ttextAlign:'center',\r\n\theight:'auto'\r\n});\r\nview7.add(l7);\r\n\r\nvar view8 = Ti.UI.createView({\r\n\tbackgroundColor:'#336699',\r\n\tborderRadius:20,borderWidth:1,borderColor:'#336699',\r\n\twidth:40,\r\n\theight:40,\r\n\tleft:360\r\n});\r\nscrollView.add(view8);\r\n\r\nvar l8 = Ti.UI.createLabel({\r\n\ttext:'8',\r\n\tfont:{fontSize:13},\r\n\tcolor:'#fff',\r\n\twidth:'auto',\r\n\ttextAlign:'center',\r\n\theight:'auto'\r\n});\r\nview8.add(l8);\r\n\r\n\r\n\r\n//\r\n// VERTICAL SCROLLING TABS\r\n//\r\nvar scrollView2 = Titanium.UI.createScrollView({\r\n\tcontentWidth:75,\r\n\tcontentHeight:500,\r\n\ttop:70,\r\n\theight:200,\r\n\twidth:75,\r\n\tborderRadius:10,\r\n\tbackgroundColor:'#13386c'\r\n});\r\nwin.add(scrollView2);\r\nscrollView2.addEventListener('scroll', function(e)\r\n{\r\n\tfor(v in e)\r\n\t{\r\n\t\tTi.API.info('v ' + v + ' e[v] ' + e[v]);\r\n\t}\r\n});\r\n\r\nvar view9 = Ti.UI.createView({\r\n\tbackgroundColor:'#336699',\r\n\tborderRadius:20,borderWidth:1,borderColor:'#336699',\r\n\twidth:40,\r\n\theight:40,\r\n\ttop:10\r\n});\r\nscrollView2.add(view9);\r\n\r\nvar l9 = Ti.UI.createLabel({\r\n\ttext:'9',\r\n\tfont:{fontSize:13},\r\n\tcolor:'#fff',\r\n\twidth:'auto',\r\n\ttextAlign:'center',\r\n\theight:'auto'\r\n});\r\nview9.add(l9);\r\n\r\nvar view10 = Ti.UI.createView({\r\n\tbackgroundColor:'#336699',\r\n\tborderRadius:20,borderWidth:1,borderColor:'#336699',\r\n\twidth:40,\r\n\theight:40,\r\n\ttop:60\r\n});\r\nscrollView2.add(view10);\r\n\r\nvar l10 = Ti.UI.createLabel({\r\n\ttext:'10',\r\n\tfont:{fontSize:13},\r\n\tcolor:'#fff',\r\n\twidth:'auto',\r\n\ttextAlign:'center',\r\n\theight:'auto'\r\n});\r\nview10.add(l10);\r\n\r\nvar view11 = Ti.UI.createView({\r\n\tbackgroundColor:'#336699',\r\n\tborderRadius:20,borderWidth:1,borderColor:'#336699',\r\n\twidth:40,\r\n\theight:40,\r\n\ttop:110\r\n});\r\nscrollView2.add(view11);\r\n\r\nvar l11 = Ti.UI.createLabel({\r\n\ttext:'11',\r\n\tfont:{fontSize:13},\r\n\tcolor:'#fff',\r\n\twidth:'auto',\r\n\ttextAlign:'center',\r\n\theight:'auto'\r\n});\r\nview11.add(l11);\r\n\r\nvar view12 = Ti.UI.createView({\r\n\tbackgroundColor:'#336699',\r\n\tborderRadius:20,borderWidth:1,borderColor:'#336699',\r\n\twidth:40,\r\n\theight:40,\r\n\ttop:160\r\n});\r\nscrollView2.add(view12);\r\n\r\nvar l12 = Ti.UI.createLabel({\r\n\ttext:'12',\r\n\tfont:{fontSize:13},\r\n\tcolor:'#fff',\r\n\twidth:'auto',\r\n\ttextAlign:'center',\r\n\theight:'auto'\r\n});\r\nview12.add(l12);\r\n\r\nvar view13 = Ti.UI.createView({\r\n\tbackgroundColor:'#336699',\r\n\tborderRadius:20,borderWidth:1,borderColor:'#336699',\r\n\twidth:40,\r\n\theight:40,\r\n\ttop:210\r\n});\r\nscrollView2.add(view13);\r\n\r\nvar l13 = Ti.UI.createLabel({\r\n\ttext:'13',\r\n\tfont:{fontSize:13},\r\n\tcolor:'#fff',\r\n\twidth:'auto',\r\n\ttextAlign:'center',\r\n\theight:'auto'\r\n});\r\nview13.add(l13);\r\n\r\nvar view14 = Ti.UI.createView({\r\n\tbackgroundColor:'#336699',\r\n\tborderRadius:20,borderWidth:1,borderColor:'#336699',\r\n\twidth:40,\r\n\theight:40,\r\n\ttop:260\r\n});\r\nscrollView2.add(view14);\r\n\r\nvar l14 = Ti.UI.createLabel({\r\n\ttext:'14',\r\n\tfont:{fontSize:13},\r\n\tcolor:'#fff',\r\n\twidth:'auto',\r\n\ttextAlign:'center',\r\n\theight:'auto'\r\n});\r\nview14.add(l14);\r\n\r\nvar view15 = Ti.UI.createView({\r\n\tbackgroundColor:'#336699',\r\n\tborderRadius:20,borderWidth:1,borderColor:'#336699',\r\n\twidth:40,\r\n\theight:40,\r\n\ttop:310\r\n});\r\nscrollView2.add(view15);\r\n\r\nvar l15 = Ti.UI.createLabel({\r\n\ttext:'15',\r\n\tfont:{fontSize:13},\r\n\tcolor:'#fff',\r\n\twidth:'auto',\r\n\ttextAlign:'center',\r\n\theight:'auto'\r\n});\r\nview15.add(l15);\r\n\r\nvar view16 = Ti.UI.createView({\r\n\tbackgroundColor:'#336699',\r\n\tborderRadius:20,borderWidth:1,borderColor:'#336699',\r\n\twidth:40,\r\n\theight:40,\r\n\ttop:360\r\n});\r\nscrollView2.add(view16);\r\n\r\nvar l16 = Ti.UI.createLabel({\r\n\ttext:'16',\r\n\tfont:{fontSize:13},\r\n\tcolor:'#fff',\r\n\twidth:'auto',\r\n\ttextAlign:'center',\r\n\theight:'auto'\r\n});\r\nview16.add(l16);\r\n\r\n\r\nwin.add(scrollView);\r\n\r\nwin.open();\r\n\r\n{code}\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: The canCancelEvents property in Android when set to false effects the scroll event in the scroll view.", "creator": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android 3.2, Ti SDK 2.1.0GA, Ti SDK 2.1.1GA, 2.1.2GA", "comment": { "comments": [ { "id": "242653", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue does not reproduces with\r\n\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK version: 3.1.0 (03/11/13 15:43 0c88429)\r\nTitanium SDK version: 3.0.2 (02/07/13 16:46 a4def81)\r\nDevice: Samsung galaxy s duos Android version: 4.0.4\r\n\r\njithinpv", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-18T13:24:01.000+0000", "updated": "2013-03-18T13:24:01.000+0000" }, { "id": "414436", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced. ", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T21:21:05.000+0000", "updated": "2017-03-21T21:21:05.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }