PDA

View Full Version : list onscroll listener



babar.sajjad
11 Feb 2011, 3:26 AM
is there any listener associated with list onscroll ?

AndreaCammarata
11 Feb 2011, 8:25 AM
Hi babar,
you can manage the list scrolling handler with event delegation.
Simply add this listener to your list



...
listeners: {
scroller: {
scroll: function(scroller, offset){
console.info(offset);
}
}
}
...


The event returns you even the offset.x and offset.y so you know how much the list has scrolled.

Hope this helps.