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

            
            // if in mouse mode, lay out scrollbars normally
            // if in touch mode, we overlay the scrollbars, so let's inset it by a bit
            if (scroller.getStyle("inputMode") == "mouse")
                hsb.setLayoutBoundsPosition(0, h - hsbH);
            else
                hsb.setLayoutBoundsPosition(0, h - hsbH - 3);

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

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