{ "id": "173941", "key": "TIMOB-27284", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": null, "resolutiondate": null, "created": "2019-07-26T17:02:17.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "scrollview" ], "versions": [ { "id": "20412", "name": "Release 8.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-07-29T10:05:51.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": "Addding {{scrollstart}} and {{scrollend}} events to {{ScrollView}}.\r\n\r\n*Example:*\r\n\r\n{code:java}\r\nvar win = Ti.UI.createWindow({backgroundColor: '#fff'});\r\nvar view1 = Ti.UI.createView({width:20,height:1520,backgroundColor:\"#f00\",top:0,borderWidth:1,borderColor:\"#000\"});\r\nvar scrollView = Ti.UI.createScrollView({height:Ti.UI.FILL,width:Ti.UI.FILL});\r\nvar ldi = Ti.Platform.displayCaps.logicalDensityFactor;\r\nscrollView.addEventListener(\"scrollend\",function(e){\r\n\tconsole.log(\"scrollend\");\r\n})\r\nscrollView.addEventListener(\"scrollstart\",function(e){\r\n\tconsole.log(\"scrollstart\");\r\n})\r\nwin.add(scrollView);\r\nscrollView.add(view1);\r\n\r\nwin.open();\r\n\r\n{code}\r\n\r\nit is based on: https://stackoverflow.com/a/24883303/5193915\r\nand will use a Runnable with 100ms to check if the scroll event is called or not.\r\n\r\nPossible PR: https://github.com/m1ga/titanium_mobile/commit/8f133bb49f66e2780338fae6125e945d13648eb3\r\n\r\nIt needs iOS parity and it is up for discussion if that approach is usable or if it will create some performance problems", "attachment": [], "flagged": false, "summary": "Android: Add scrollstart/scrollend to ScrollView", "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": 1, "total": 1, "startAt": 0 } } }