 import flash.geom.Point;
 
 import mx.core.IUIComponent;
+import mx.core.InteractionMode;
+import mx.core.ScrollPolicy;
 import mx.core.mx_internal;
-import mx.core.ScrollPolicy;
 import mx.utils.MatrixUtil;
 
 import spark.components.Scroller;

        }
        
        // if in touch mode, only show scrollbars if a scroll is currently in progress
        if (scroller.getStyle("inputMode") == "touch")
        {
            hsbTakeUpSpace = false;
            hsbVisible = scroller.horizontalScrollInProgress;

            return;
            
        const minViewportInset:Number = scroller.minViewportInset;
        const measuredSizeIncludesScrollBars:Boolean = scroller.measuredSizeIncludesScrollBars && (scroller.getStyle("interactionMode") == InteractionMode.MOUSE);

        var measuredW:Number = minViewportInset;
        var measuredH:Number = minViewportInset;
