 
       if @inTree(@draggingBlock) and @mainViewOrChildrenContains @draggingBlock, renderPoint
         @draggingBlock.ephemeral = false
-
-        @draggingBlock = null
-        @draggingOffset = null
-        @lastHighlight = null
-
-        @clearDrag()
-        @redrawMain()
+        @endDrag()
 
   # LINE NUMBER GUTTER CODE
   # ================================

      @addMicroUndoOperation new CreateSegmentOperation @lassoSegment

      # Move the cursor to the segment we just created
      @moveCursorTo @lassoSegment.end.next, true

      @redrawMain()


        if @draggingBlock is @lassoSegment
          @lassoSegment = null

        @endDrag()
        return

      else if renderPoint.x - @scrollOffsets.main.x < 0
