{ "id": "100547", "key": "TIMOB-10980", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14158", "description": "Sprint 2012-20 Core", "name": "Sprint 2012-20 Core", "archived": true, "released": true, "releaseDate": "2012-10-08" }, { "id": "14272", "description": "2012 Sprint 20", "name": "2012 Sprint 20", "archived": true, "released": true, "releaseDate": "2012-10-08" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-09-25T20:38:45.000+0000", "created": "2012-09-06T08:35:43.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "tableView" ], "versions": [ { "id": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" } ], "issuelinks": [ { "id": "34647", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "87333", "key": "TIMOB-7877", "fields": { "summary": "Android: TableView scroll event contentOffset returning null", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "21109", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "99935", "key": "DE-135", "fields": { "summary": "KitchenSink: UI>Views>Table Views> Pull to Refresh fails to add more rows.", "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": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-28T22:52:25.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": "12305", "name": "Core", "description": "Central component of the Platform (outside of Tooling, or platform specific implementation details)" } ], "description": "TableView scrollEnd event contentOffset.y returns either 0 or table height regardless of the offset upon release preventing an implementation of pull to refresh. The Kitchen Sink app is a good example of 'Pull To Refresh' example failing because of the contentOffset.y=0 . Kitchen Sink example can be found here BaseUI->Views->Table Views->Pull to Refresh", "attachment": [], "flagged": false, "summary": "TableView scrollEnd event contentOffset y returns incorrect value upon release", "creator": { "name": "jerodfritz", "key": "jerodfritz", "displayName": "Jerod Fritz", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "jerodfritz", "key": "jerodfritz", "displayName": "Jerod Fritz", "active": true, "timeZone": "America/New_York" }, "environment": "Release 2.0+", "comment": { "comments": [ { "id": "218469", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Jerod,\r\n\r\nThe contentoffset is returning the appropriate values as and when you scroll and scrollback. I set tiapi.info statements to see e.contentoffset.y values and it changes accordingly. I believe you are testing the same thing. If you have any other sample reproducible test case , I will check it and let you know what can be done.\r\n\r\nRegards,\r\nAnirudh", "updateAuthor": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-11T16:38:16.000+0000", "updated": "2012-09-11T16:38:16.000+0000" }, { "id": "218491", "author": { "name": "jerodfritz", "key": "jerodfritz", "displayName": "Jerod Fritz", "active": true, "timeZone": "America/New_York" }, "body": "The issue is not returning offset values during up and down scrolling it is returning the offset at which you released the view within the scrollEnd event. This is best illustrated as not working in your Kitchen Sink app. Specifically reference file ui/handheld/ios/baseui/table_view_pull_to_refresh.js and notice you are unable to reach lines 148-157 because the condition is never met due to the e.contentOffset.y value.", "updateAuthor": { "name": "jerodfritz", "key": "jerodfritz", "displayName": "Jerod Fritz", "active": true, "timeZone": "America/New_York" }, "created": "2012-09-11T18:33:29.000+0000", "updated": "2012-09-11T18:33:29.000+0000" }, { "id": "219763", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "In Release 2.1, there were a number of changes to the scrolling events to improve parity between platforms and consistency between different views.\r\n\r\nOn iOS, TableView was firing the scrollEnd event when the user released the control (stopped dragging) instead of when the control stopped scrolling. Now it fires dragEnd when the finger is lifted and scrollEnd when the view actually stops moving. Given this behavior, I believe that scrollEnd is returning the correct contentOffset value.\r\n\r\nThe Kitchen Sink example should have been corrected at that time, but it wasn't. This issue is reported as TIMOB-10677.", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-19T11:13:44.000+0000", "updated": "2012-09-19T11:13:44.000+0000" }, { "id": "220749", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "scrollend event in tableView has been redefined to match the definition in scrollView. Pull to refresh is now implemented using the dragend event.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-09-25T20:38:45.000+0000", "updated": "2012-09-25T20:38:45.000+0000" }, { "id": "416080", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-28T22:52:25.000+0000", "updated": "2017-03-28T22:52:25.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }