{ "id": "121210", "key": "TIMOB-15491", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-10-23T22:46:39.000+0000", "created": "2013-10-15T14:21:19.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "triage" ], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" }, { "id": "15747", "description": "Release 3.1.4", "name": "Release 3.1.4", "archived": true, "released": false } ], "issuelinks": [ { "id": "32775", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "119446", "key": "TIMOB-15095", "fields": { "summary": "iOS: ScrollableView's manageCache causing lag halfway through page", "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 } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T22:12:19.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "The problem is the following: Scrollableview with 10 view, 150 objects(the problem occurs even with less loaded objects) for view, the loaded object is always the same and is a commonjs.\r\n\r\nThe slowdown of the scroll will notice when you scroll, for example, from view 2 to 3, from 3 to 4 view, etc etc ... To see the problem just try to scroll slowly from one view to another, and as soon as you switch to another view you will notice the shot\r\n\r\nthe problem comes with the following SDK titanium:\r\n3.1.4.v20131008163742\r\n3.1.3GA\r\n3.1.2GA\r\n3.1.1GA\r\n\r\n\r\nCode to be used for the test (and the attached video shows the problem):\r\n\r\napp.js\r\n{code}\r\nvar w = Titanium.UI.createWindow({\r\n backgroundColor : 'black'\r\n});\r\n\r\nvar scrollableViewAmbiente = Titanium.UI.createScrollableView({\r\n width : 1024,\r\n height : 648,\r\n top : 60,\r\n borderColor:'red',\r\n showPagingControl : true\r\n});\r\n\r\nvar array_view = [];\r\n\r\nvar COMMON_JS = require('common_js');\r\n\r\n\r\nfor(var i = 0 ; i < 10 ; i++){\r\n \r\n \r\n \r\n var view = Ti.UI.createView({\r\n width : 1024,\r\n height : 648\r\n });\r\n \r\n \r\n var top = -30;\r\n var left = 30;\r\n \r\n for(var j = 0 ; j < 100 ; j ++){\r\n \r\n \r\n if(j%16 == 0){\r\n top += 60;\r\n left = 10;\r\n }\r\n \r\n var data_for_commonjs = {};\r\n data_for_commonjs.top = top;\r\n data_for_commonjs.left = left;\r\n \r\n var my_commonjs = new COMMON_JS(data_for_commonjs);\r\n \r\n view.add(my_commonjs);\r\n \r\n \r\n left +=60;\r\n\r\n }\r\n \r\n \r\n array_view[i] = view;\r\n \r\n \r\n}\r\n\r\n\r\nscrollableViewAmbiente.views = array_view;\r\nscrollableViewAmbiente.cacheSize = array_view.length + 1;\r\n\r\nw.add(scrollableViewAmbiente);\r\n\r\nw.open();\r\n\r\n{code}\r\n\r\ncommon_js.js\r\n{code}\r\n\r\nfunction my_commonjs(data) {\r\n\r\n \r\n var view = Ti.UI.createView({\r\n width : 20,\r\n height : 20,\r\n top : data.top,\r\n left : data.left,\r\n backgroundColor : 'red',\r\n borderColor : 'green'\r\n });\r\n \r\n \r\n \r\n return view;\r\n\r\n}\r\n\r\nmodule.exports = my_commonjs;\r\n\r\n{code}", "attachment": [ { "id": "43190", "filename": "slow scroll.mov", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2013-10-15T14:21:19.000+0000", "size": 4075272, "mimeType": "video/quicktime" } ], "flagged": false, "summary": "iOS7: ScrollableView Scroll very slow", "creator": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "subtasks": [], "reporter": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "environment": "SDK Apple iOS 7 , SDK Titanium 3.1.4.v20131008163742 - 3.1.3 GA - 3.1.2 GA - 3.1.1 GA , Xcode 5.0", "comment": { "comments": [ { "id": "275412", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "body": "I can not try the previous SDK (< 3.1.1GA) for addiction with node , but the problem was also present with the old SDK", "updateAuthor": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2013-10-17T12:40:04.000+0000", "updated": "2013-10-17T12:40:04.000+0000" }, { "id": "275609", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "body": "anything?", "updateAuthor": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2013-10-18T10:25:50.000+0000", "updated": "2013-10-18T10:25:50.000+0000" }, { "id": "275655", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Is this only present in iOS7, or was it also the same in iOS6?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-18T16:13:43.000+0000", "updated": "2013-10-18T16:13:43.000+0000" }, { "id": "275686", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "body": "This problem is present in iOS 6 and also in iOS 7", "updateAuthor": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2013-10-18T17:59:19.000+0000", "updated": "2013-10-18T17:59:19.000+0000" }, { "id": "276483", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Duplicate of TIMOB-15095. Will be resolved as part of that", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-10-23T22:45:43.000+0000", "updated": "2013-10-23T22:45:43.000+0000" }, { "id": "414057", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T22:12:19.000+0000", "updated": "2017-03-20T22:12:19.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }