         lastVelocity.x *= movedRatio.x;
         lastVelocity.y *= movedRatio.y;
         
-        var scrollEndEvent:TouchScrollEvent;
+        var scrollEndEvent:GestureCaptureEvent;
         
         // FIXME (rfrishbe): should be minXVelocity, minYVelocity, minDiagonalVelocity
         // FIXME (rfrishbe): this should be parameterized better and the heuristic should 

     *  @private
     *  Event handler dispatched when someone is about to start scrolling.
     */
    private function touchScrollStartingHandler(event:TouchScrollEvent):void
    {
        // if it's us, don't do anything
        // if it's someone else and we've started scrolling, cancel this event
        // if it's someone else and we haven't started scrolling, don't do anything
        // here yet. Worry about it in the touchScrollStartHandler().
        if (event.scrollingObject != this && (horizontalScrollInProgress || verticalScrollInProgress))
        {
            event.preventDefault();
        }

                }
                
                // if the event has been accepted, then dispatch a bubbling start event
                var scrollStartEvent:GestureCaptureEvent = new GestureCaptureEvent(GestureCaptureEvent.GESTURE_CAPTURE_START, true, true);
                scrollStartEvent.relatedObject = scroller;
                scrollStartEvent.reason = GestureCaptureReason.SCROLL;
                mouseDownedDisplayObject.dispatchEvent(scrollStartEvent);
                
                // FIXME (rfrishbe): the difference should not be from the original point but from the slop.
                // otherwise we "jump" on the first move.
