[TIMOB-2975] iOS: Scroll end view consistency / parity with Android
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Trivial |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-05-23T14:13:34.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Backlog |
Components | iOS |
Labels | feature, ios, reported-1.6.0, rplist |
Reporter | Rick Blalock |
Assignee | Reggie Seagraves |
Created | 2011-04-15T03:34:00.000+0000 |
Updated | 2017-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);
(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...
Tested sim 4.2.1 debug, iPod 3GT 4.2.1 release. Behaves as described in documentation.
(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...
You saw the revert. This will have to wait.
Closing ticket as fixed.