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

            
        }
        
        if (canScrollVertically)
        {
            var vsp:Number = viewport.verticalScrollPosition;
            var viewportHeight:Number = isNaN(viewport.height) ? 0 : viewport.height;

        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;
