         var xMove:int = 0;
         var yMove:int = 0;
         
-        if (canScrollHorizontally)
+        if (scrollerLayout && scrollerLayout.canScrollHorizontally)
             xMove = dragX;
         
-        if (canScrollVertically)
+        if (scrollerLayout && scrollerLayout.canScrollVertically)
             yMove = dragY;
         
         var newHSP:Number = hspBeforeTouchScroll - xMove;

            scrollingHorizontally = false;
        }
        
        if (canScrollVertically)
        {
            var verticalMP:SimpleMotionPath = new SimpleMotionPath("verticalScrollPosition");
            var vspToUse:Number = Math.min(Math.max(finalVSP,0), maxHeight);

        var decelerationRateY:Number = velocityY/THROW_EFFECT_TIME;
        
        // figure out where we're scrolling to
        if (scrollerLayout && scrollerLayout.canScrollHorizontally)
        {
            var hsp:Number = viewport.horizontalScrollPosition;
            var viewportWidth:Number = isNaN(viewport.width) ? 0 : viewport.width;
