   #    ##     ## ##   ##   ##     ##
   #    ########   ####  ## ########
 
-  startDrag: ({pageY}) ->
+  startDrag: ({which, pageY}) ->
+    return if which isnt 1
     {top} = @visibleArea.getBoundingClientRect()
     {top: offsetTop} = @getBoundingClientRect()
 

      document.body.removeEventListener('mouseout', mouseupHandler)

  drag: (e, initial) ->
    y = e.pageY - initial.offsetTop - initial.dragOffset

    ratio = y / (@minimap.getVisibleHeight() - @minimap.getTextEditorScaledHeight())

    for config, callback of configs
      @subscriptions.add atom.config.observe config, callback

  mousePressedOverCanvas: ({which, pageY, target}) ->
    return if which isnt 1

    y = pageY - target.getBoundingClientRect().top
    row = Math.floor(y / @minimap.getLineHeight()) + @minimap.getFirstVisibleScreenRow()

    scrollTop = row * @minimap.textEditor.getLineHeightInPixels() - @minimap.textEditor.getHeight() / 2

    @minimap.textEditor.setScrollTop(scrollTop)
  relayMousewheelEvent: (e) =>
    editorElement = atom.views.getView(@minimap.textEditor)

