     # Redraw the main canvas
     @redrawMain()
 
-Editor::getClosestDroppableBlock = (mainPoint, event) ->
+Editor::getClosestDroppableBlock = (mainPoint, isDebugMode) ->
   best = null; min = Infinity
 
   if not (@dropPointQuadTree)

    # If there is an expansion function, call it again here.
    if (@draggingBlock.expansion)
      # Call expansion() with the closest droppable block for all drag moves.
      expansionText = @draggingBlock.expansion(@getClosestDroppableBlockFromPosition(position))

      # Create replacement @draggingBlock if the returned text is new.
      if expansionText isnt @draggingBlock.lastExpansionText

        min = distance
  best

Editor::getClosestDroppableBlockFromPosition = (position, isDebugMode) ->
  if not @currentlyUsingBlocks
    return null

  mainPoint = @trackerPointToMain(position)
  @getClosestDroppableBlock(mainPoint, isDebugMode)

Editor::getAcceptLevel = (drag, drop) ->
  if drop.type is 'socket'
