         
         const liveScrolling:* = getStyle("liveScrolling");
         const liveScrollingSet:Boolean = (liveScrolling === true) || (liveScrolling === false);
+        const inTouchMode:Boolean =  (getStyle("interactionMode") == InteractionMode.TOUCH);
         
         if (instance == verticalScrollBar)
         {

            if (liveScrollingSet)
                verticalScrollBar.setStyle("liveDragging", Boolean(liveScrolling));
            verticalScrollBar.contentMinimum = minVerticalScrollPosition;
            verticalScrollBar.contentMaximum = maxVerticalScrollPosition; 
        }
        else if (instance == horizontalScrollBar)
        {

                horizontalScrollBar.setStyle("liveDragging", Boolean(liveScrolling));            
            horizontalScrollBar.contentMinimum = minHorizontalScrollPosition;
            horizontalScrollBar.contentMaximum = maxHorizontalScrollPosition; 

            // We don't support directly interacting with the scrollbars in touch mode
            if (inTouchMode)
            {
                horizontalScrollBar.mouseEnabled = false;
                horizontalScrollBar.mouseChildren = false;
            }
        }
    }
    
