Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24905] Windows: ListView scrolling event should only fire when user is touching the screen

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionWon't Fix
Resolution Date2021-02-11T12:15:58.000+0000
Affected Version/sRelease 6.2.0
Fix Version/sn/a
ComponentsWindows
Labelsn/a
ReporterEwan Harris
AssigneeUnknown
Created2017-06-28T15:46:23.000+0000
Updated2021-02-11T12:15:58.000+0000

Description

Description

Our docs confuse me on what is correct here http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.ListView-event-scrolling (hence filing the ticket and not blocking the PR)
var win = Ti.UI.createWindow({ backgroundColor: 'green', layout: 'vertical' });
var listView = Ti.UI.createListView({ width: Ti.UI.FILL, height: Ti.UI.FILL });
var sections = [];
for (var i = 0; i < 100; i++) {
    var fruitSection = Ti.UI.createListSection({ headerTitle: 'Fruits ' + i });
    var items = [];
    for (var j = 0; j < 3; j++) {
        items.push({ properties: { title: 'Apple ' + i + '.' + j } });
    }
    fruitSection.setItems(items);
    sections.push(fruitSection);
}
listView.sections = sections;
listView.addEventListener('scrollstart', function (e) {
    Ti.API.info('scrollstart');
});
listView.addEventListener('scrolling', function (e) {
    Ti.API.info('scrolling');
});
listView.addEventListener('scrollend', function (e) {
    Ti.API.info('scrollend');
});
win.add(listView);
win.open();

Steps to reproduce

Add the above code to an existing app.js and build for a Windows device

Scroll the view and ensure the view still scrolls

Actual

Scrolling event stays firing

Expected

Based off Android and iOS the scrolling event should only fire when the user is touching the screen and actively scrolling.

Comments

No comments

JSON Source