scrollableView scroll

You must Login before you can answer or comment on any questions.

Hi,

i have a scrollableView named mediasScroll.

i have this eventListener :

mediasScroll.addEventListener('scroll', function(e){
        Ti.API.info('page : ' + e.currentPage);
    });
i see that this message is displayed many times !!! is it normal ?

in my mind...when is scroll, this code is executed but only one time..

thanks for help

1 Answer

From Titanium docs


scroll

Fired repeatedly as the view is being scrolled.

Prior to 2.1, the scroll event did not fire consistently on all platforms. On iOS and Mobile Web, it fired when scrolling ended, and on Android, it fired when drag ended. You can restore the pre-2.1 behavior by listening for the scrollEnd or dragEnd events instead.


So, yes this is normal.

Refer to Titanium docs for more accurate documentation.

Stefano

Your Answer

Think you can help? Login to answer this question!