{ "id": "63054", "key": "TIMOB-2422", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "2012-08-08T15:09:04.000+0000", "created": "2011-04-15T03:19:16.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "tbs-1.8.0" ], "versions": [], "issuelinks": [ { "id": "19758", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "63254", "key": "TIMOB-2622", "fields": { "summary": "Android: Add scroll end event to scroll views", "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": "Medium", "id": "3" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "19757", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "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": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T18:37:06.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}

\r\nEnvironment:\r\n- Android checked on device (os 2.3.6 nexus one) and emulator (OS 2.2)\r\n\r\nCreate a scrollable region of content with Ti.UI.createScrollView.\r\nThe expected behavior is to be able to trigger and event when the whole portion of area is scrolled.\r\n'scrollEnd' event works fine on iOS but on Android no event is triggered.\r\n'scroll' event correctly works.\r\n\r\nSample code:\r\nhttp://pastie.org/2690123\r\n

{html}", "attachment": [], "flagged": false, "summary": "Add scrollEnd event to scroll views on Android", "creator": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "128410", "author": { "name": "kevinwhinnery", "key": "kevinwhinnery", "displayName": "kevinwhinnery", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

This does not actually work on Android, unless I misunderstand\nhow the event is supposed to be used:

\n
\nvar win = Ti.UI.createWindow({\n    backgroundColor:'#fff'\n});\n\nvar container = Ti.UI.createScrollView({\n    top:50,\n    left:10,\n    right:10,\n    height:150,\n    contentHeight:'auto'\n});\n\ncontainer.addEventListener('scrollEnd', function() {\n    Ti.API.info('got it');\n});\n\ncontainer.add(Ti.UI.createView({height:800,backgroundColor:'green'}));\n\nwin.add(container);\nwin.open();\n
{html}", "updateAuthor": { "name": "kevinwhinnery", "key": "kevinwhinnery", "displayName": "kevinwhinnery", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:19:16.000+0000", "updated": "2011-04-15T03:19:16.000+0000" }, { "id": "128411", "author": { "name": "jamesk", "key": "jamesk", "displayName": "James K", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

The scroll event currently implemented for iOS is in fact a\nscrollend event. It is implemented in\nscrollViewDidEndDecelerating.

\n

The better course would be to rename that event to scrollend and\nimplement a true scroll event in scrollViewDidScroll which fires\nwhen the scroll is 50% complete and the page control changes\ncolor.

\n

I have done this locally with no issues.

{html}", "updateAuthor": { "name": "jamesk", "key": "jamesk", "displayName": "James K", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:19:16.000+0000", "updated": "2011-04-15T03:19:16.000+0000" }, { "id": "128412", "author": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(good potential for exercise assignment)

{html}", "updateAuthor": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:19:17.000+0000", "updated": "2011-04-15T03:19:17.000+0000" }, { "id": "415694", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate with reference to the linked issues.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T18:37:06.000+0000", "updated": "2017-03-24T18:37:06.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }