 
     scaleScrollDelta = (scrollDelta) ->
       Math.pow(scrollDelta / 2, 3) / 280
-
-    pasteSelectionClipboard = (event) =>
-      if event?.which is 2 and process.platform is 'linux'
-        if selection = require('./safe-clipboard').readText('selection')
-          @editor.insertText(selection)
 
     window.addEventListener('mousemove', onMouseMove)
     window.addEventListener('mouseup', onMouseUp)

        stopDragging()
        @editor.finalizeSelections()
        @editor.mergeIntersectingSelections()
      pasteSelectionClipboard(event)

    stopDragging = ->
      dragging = false

    @presenter.invalidateBlockDecorationDimensions(arguments...)

  onMouseDown: (event) =>
    # Handle middle mouse button on linux platform only (paste clipboard)
    if event.button is 1 and process.platform is 'linux'
      if selection = require('./safe-clipboard').readText('selection')
        screenPosition = @screenPositionForMouseEvent(event)
        @editor.setCursorScreenPosition(screenPosition, autoscroll: false)
        @editor.insertText(selection)
        return

    # Handle mouse down events for left mouse button only
    # (except middle mouse button on linux platform, see above)
    unless event.button is 0
      return

    return if event.target?.classList.contains('horizontal-scrollbar')
