       @editorView.scrollTop(@editorView.scrollTop() - wheelDeltaY)
 
   onMouseDown: (e) =>
+    # Handle left-click only
+    return if e.which isnt 1
     @isClicked = true
     e.preventDefault()
     e.stopPropagation()

    @on 'mousedown', (e) =>
      @onMouseDown(e)
      @onDragStart(e)

    @on 'mousedown', '.minimap-visible-area', @onDragStart

    @subscribe @paneView.model.$activeItem, @onActiveItemChanged
    # Fix items movin to another pane.

  onScrollViewResized: => @updateMinimapView()

  onDragStart: (e) =>
    # Handle left-click only
    return if e.which isnt 1
    @on 'mousemove.visible-area', @onMove

  onMove: (e) =>
    if e.which is 1
      @onMouseDown e
    else
      @off '.visible-area'

  # OTHER PRIVATE METHODS

