Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14319] iOS: Implement the scroll/drag start/end events for ListView

GitHub Issuen/a
TypeSub-task
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-08-01T23:21:23.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 16, 2013 Sprint 16 API, Release 3.2.0
ComponentsiOS
Labelsn/a
ReporterBryan Hughes
AssigneeVishal Duggal
Created2013-06-20T20:23:52.000+0000
Updated2017-03-21T18:34:18.000+0000

Description

Implement the new event and method as specified in TIMOB-14318

Comments

  1. Vishal Duggal 2013-08-01

    Test Code. Note to testers. Ensure the following 1. Event fired only once. 2. Fired when doing a normal scroll. 3. Fired when scrolling using the sectionIndexTitles
       function genSection(sectionIndex) {
           var section = Ti.UI.createListSection({ headerTitle: 'Section '+sectionIndex});
           var data = [];
           var row=1;
           while(row<21) {
               data.push({properties:{title:'Section '+sectionIndex+' Row '+row}});
               row++;
           }
           section.setItems(data);
           return section;
       }
       
       var win = Ti.UI.createWindow({backgroundColor: 'white'});
       var listView = Ti.UI.createListView();
       var sections = [];
       var indices = [];
       var sc=0;
       while(sc<10) {
           sections.push(genSection(sc+1));
           indices.push({index:sc,title:'S'+sc});
           sc++;
       }
       
       listView.sections = sections;
       listView.sectionIndexTitles = indices;
       
       listView.setMarker({sectionIndex:5,itemIndex:15});
       listView.addEventListener('marker',function(e){
           Ti.API.info('GOT MARKER EVENT');
       })
       win.add(listView);
       win.open();
       
  2. Vishal Duggal 2013-08-01

    Pull pending https://github.com/appcelerator/titanium_mobile/pull/4528
  3. Lee Morris 2017-03-21

    Closing ticket as fixed.

JSON Source