I’m pretty sure “rubber band” scrolling is already being handled. Right?

If so, the same way to bounce back is being handled when scrolling past the 
end, a refresh could be called as well.

FWIW, I have a handler which loads more results when scrolling to the bottom of 
a (normal) list like this:

                        private function handleScroll():void
                        {
                                if(_currentContainer && 
_currentContainer.children){
                                        var totalCells:int = 
_currentContainer.children.length;
                                        var totalRows:Number = 
totalCells/thumbnailLayout.columnCount;
                                        var pos:Number = 
imageGrid.scroller.verticalScrollBar.value;
                                        _lastScrollValue = pos;
                                        var max:Number = 
imageGrid.scroller.verticalScrollBar.maximum;
                                        var step:Number = max / totalRows;
                                        
                                        if(pos > max - (step*2)){
                                                
_currentContainer.getMoreResults();
                                        }
                                }
                        }

It’s obviously not very generalized, but the approach might be useful…

(_lastScrollValue is used to restore the scroll position when the data is 
updated.)

Reply via email to