 package spark.components
 {
 import spark.components.supportClasses.ScrollBar;
-import spark.core.ScrollUnit;
+import spark.core.NavigationUnit;
 import spark.core.IViewport;
 import mx.core.ILayoutElement;
 import mx.events.PropertyChangeEvent;

        if (viewport)
        {
            var vpPageSize:Number = Math.abs(viewport.getHorizontalScrollPositionDelta(
                (newValue > value) ? ScrollUnit.PAGE_RIGHT : ScrollUnit.PAGE_LEFT));
            super.animatePaging(newValue, vpPageSize);
            return;
        }        

            // implementation.
            oldPageSize = pageSize;
            pageSize = Math.abs(viewport.getHorizontalScrollPositionDelta(
                (increase) ? NavigationUnit.PAGE_RIGHT : NavigationUnit.PAGE_LEFT));
        }
        super.page(increase);
        if (viewport)
