{ "id": "176297", "key": "AC-6722", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": null, "resolutiondate": null, "created": "2021-10-04T12:30:47.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-10-04T19:24:47.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "The current {{scrolling}} event will only fire when there is a change in the direction. \r\n\r\n*Adding {{continuousUpdate}}:*\r\nWhen {{continuousUpdate}} is enabled the scrolling event will fire for every visibleItem/Section change.\r\n\r\nWould love to see an iOS parity ticket!\r\n\r\n{code}\r\nvar toggle = true;\r\nvar win = Ti.UI.createWindow();\r\nvar btn = Ti.UI.createButton({\r\n\ttitle: \"change\",\r\n\tbottom: 20\r\n});\r\n\r\nbtn.addEventListener(\"click\", function() {\r\n\ttoggle = !toggle;\r\n\tlistView.continuousUpdate = toggle\r\n console.log(listView.continuousUpdate);\r\n})\r\nwin.add(btn);\r\n\r\nvar listView = Ti.UI.createListView({\r\n\theight: Ti.UI.FILL,\r\n\twidth: Ti.UI.FILL,\r\n\tcontinuousUpdate: true\r\n});\r\nvar sections = [];\r\n\r\nfor (var s = 0; s < 5; s++) {\r\n\tvar section = Ti.UI.createListSection({\r\n\t\theaderTitle: 'Section ' + s\r\n\t});\r\n\tvar set = [];\r\n\tfor (var i = 0; i < 20; ++i) {\r\n\t\tset.push({\r\n\t\t\tproperties: {\r\n\t\t\t\ttitle: 'Item 0 ' + i\r\n\t\t\t}\r\n\t\t})\r\n\t}\r\n\tsection.setItems(set);\r\n\tsections.push(section);\r\n}\r\n\r\nlistView.sections = sections;\r\nwin.add(listView);\r\n\r\nlistView.addEventListener(\"scrolling\", function(e) {\r\n\tconsole.log(\"Item\", e.firstVisibleItemIndex, e.firstVisibleSectionIndex);\r\n})\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "ListView: continuous update for scrolling event", "creator": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }