       when 3
         @editor.getLastSelection().selectLine()
 
-    @handleDragUntilMouseUp event, (screenPosition) =>
+    @handleDragUntilMouseUp (screenPosition) =>
       @editor.selectToScreenPosition(screenPosition, true)
 
   onLineNumberGutterMouseDown: (event) =>

    bufferRange = new Range([clickedBufferRow, 0], [clickedBufferRow + 1, 0])
    rowSelection = @editor.addSelectionForBufferRange(bufferRange, preserveFolds: true)

    @handleDragUntilMouseUp event, (screenPosition) =>
      dragRow = screenPosition.row
      dragBufferRow = @editor.bufferRowForScreenRow(dragRow)


  onCursorMoved: =>
    @cursorMoved = true

  handleDragUntilMouseUp: (dragHandler) =>
    dragging = false
    lastMousePosition = {}
    animationLoop = =>
