01-02-2013 03:35 PM
I want to check whether list is scrolling up or down.I am using ListScrollStateHandler + atEnd property to check whether the list is at the end or not.At end if i scroll up i want to download images and if it is down i won't do anything. please provide me the solution.
01-02-2013 11:11 PM
you can simply handle the touch() event on the list view to detect the scroll direction?
//event.windowY(); //store y position as it moves and detect whether y-difference is negative or positive for scrolling direction
i'm not sure of the reason why you need this, but if you are downloading thumbnails for your list items, you might want to look at this sample:
the ListView handles the async loading pretty well (even with the images as shown in the sample), so no need to re-invent the wheel
01-03-2013 02:11 AM
The ListScrollStateHandler tells you if the list is scrolling or not, but doesn't seem to provide the direction:
I would put a LayoutUpdateHandler inside the ListItemComponent for the listview, and detect changes in the layoutFrame.y property