{ "id": "116273", "key": "TIMOB-14319", "fields": { "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true }, "parent": { "id": "116271", "key": "TIMOB-14317", "fields": { "summary": "TI API: Implement the scroll/drag start/end events for ListView", "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 } } }, "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": "15576", "description": "2013 Sprint 16", "name": "2013 Sprint 16", "archived": true, "released": true, "releaseDate": "2013-08-12" }, { "id": "15578", "description": "2013 Sprint 16 API", "name": "2013 Sprint 16 API", "archived": true, "released": true, "releaseDate": "2013-08-12" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-08-01T23:21:23.000+0000", "created": "2013-06-20T20:23:52.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [ { "id": "29733", "type": { "id": "10020", "name": "Depends", "inward": "is dependent of", "outward": "depends on" }, "outwardIssue": { "id": "116272", "key": "TIMOB-14318", "fields": { "summary": "Specification: Create the specification for scroll/drag start/end events for ListView", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T18:34:18.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": "Implement the new event and method as specified in TIMOB-14318", "attachment": [], "flagged": false, "summary": "iOS: Implement the scroll/drag start/end events for ListView", "creator": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "264546", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Test Code.\r\nNote to testers. Ensure the following\r\n1. Event fired only once.\r\n2. Fired when doing a normal scroll.\r\n3. Fired when scrolling using the sectionIndexTitles\r\n\r\n{code}\r\nfunction genSection(sectionIndex) {\r\n var section = Ti.UI.createListSection({ headerTitle: 'Section '+sectionIndex});\r\n var data = [];\r\n var row=1;\r\n while(row<21) {\r\n data.push({properties:{title:'Section '+sectionIndex+' Row '+row}});\r\n row++;\r\n }\r\n section.setItems(data);\r\n return section;\r\n}\r\n\r\nvar win = Ti.UI.createWindow({backgroundColor: 'white'});\r\nvar listView = Ti.UI.createListView();\r\nvar sections = [];\r\nvar indices = [];\r\nvar sc=0;\r\nwhile(sc<10) {\r\n sections.push(genSection(sc+1));\r\n indices.push({index:sc,title:'S'+sc});\r\n sc++;\r\n}\r\n\r\nlistView.sections = sections;\r\nlistView.sectionIndexTitles = indices;\r\n\r\nlistView.setMarker({sectionIndex:5,itemIndex:15});\r\nlistView.addEventListener('marker',function(e){\r\n Ti.API.info('GOT MARKER EVENT');\r\n})\r\nwin.add(listView);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-08-01T21:37:01.000+0000", "updated": "2013-08-01T21:38:36.000+0000" }, { "id": "264549", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4528", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-08-01T21:42:01.000+0000", "updated": "2013-08-01T21:42:01.000+0000" }, { "id": "414290", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T18:34:18.000+0000", "updated": "2017-03-21T18:34:18.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }