                     {
                         // currentIndex is visible, we can calculate where the scrollRect top
                         // would end up if we scroll by a page                    
-                        y = getVerticalScrollPositionDelta(ScrollUnit.PAGE_UP) + getScrollRect().top;
+                        y = getVerticalScrollPositionDelta(NavigationUnit.PAGE_UP) + getScrollRect().top;
                     }
                     else
                     {

                break;
            }

            default: return super.getDestinationIndex(navigationUnit, currentIndex);
        }
        return Math.max(0, Math.min(maxIndex, newIndex));  
    }

                    {
                        // currentIndex is visible, we can calculate where the scrollRect bottom
                        // would end up if we scroll by a page                    
                        y = getVerticalScrollPositionDelta(NavigationUnit.PAGE_DOWN) + getScrollRect().bottom;
                    }
                    else
                    {
