Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2975] iOS: Scroll end view consistency / parity with Android

GitHub Issuen/a
TypeNew Feature
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2012-05-23T14:13:34.000+0000
Affected Version/sn/a
Fix Version/sBacklog
ComponentsiOS
Labelsfeature, ios, reported-1.6.0, rplist
ReporterRick Blalock
AssigneeReggie Seagraves
Created2011-04-15T03:34:00.000+0000
Updated2017-03-14T18:02:58.000+0000

Description

The iOS implementation of the 'scrollEnd' event fires the event when the user lifts their finger. Our docs state: "fired when the table view stops scrolling (currently, iphone only)". Whether that should happen upon deceleration or another way is not clear. Either way, it doesn't currently fire the way the documentation leads.

Also, the event is named 'scrollEnd' (camelcase) which is not consistent with most of our other event names.

This is a ticket that is in line with the Android ticket here: https://appcelerator.lighthouseapp.com/projects/32238/tickets/2622-android-add-scroll-end-event-to-scroll-views"> https://appcelerator.lighthouseapp.com/projects/32238/tickets/2622-...

HD ticket here: http://developer.appcelerator.com/helpdesk/view/69201">http://developer.appcelerator.com/helpdesk/view/69201

Sample:

var win = Ti.UI.currentWindow; 
win.backgroundColor = '#fff';

var rows = [];

for (var i = 0; i < 1000; i++) {
    var row = Ti.UI.createTableViewRow();
    
    var label = Ti.UI.createLabel({
        text: 'Some label ' + i
    });
    row.add(label);
    
    rows.push(row);
};

var table = Ti.UI.createTableView({
    data: rows
});

table.addEventListener('scroll', function(e) {
    //Ti.API.info('Start ' + e);
});

table.addEventListener('scrollEnd', function(e) {
    Ti.API.info('End ' + e);
});

win.add(table);

Comments

  1. Jeff Haynie 2011-04-15

    (from [66b472c242ef88e8721b573c966311ba85b2ef5a]) [#2975 state:fixed-in-qa] Triggering at the right time now. https://github.com/appcelerator/titanium_mobile/commit/66b472c242ef88e8721b573c966311ba85b2ef5a"> https://github.com/appcelerator/titanium_mobile/commit/66b472c242ef...

  2. Stephen Tramer 2011-04-15

    Tested sim 4.2.1 debug, iPod 3GT 4.2.1 release. Behaves as described in documentation.

  3. Jeff Haynie 2011-04-15

    (from [b310670abc27a95431a1ed152eb31984134e54ee]) Revert "[#2975 state:fixed-in-qa] Triggering at the right time now." We'll have to revisit this in 1.7.
    This reverts commit 66b472c242ef88e8721b573c966311ba85b2ef5a.
    https://github.com/appcelerator/titanium_mobile/commit/b310670abc27a95431a1ed152eb31984134e54ee"> https://github.com/appcelerator/titanium_mobile/commit/b310670abc27...

  4. Blain Hamon 2011-04-15

    You saw the revert. This will have to wait.

  5. Lee Morris 2017-03-14

    Closing ticket as fixed.

JSON Source