   onScrollViewResized: => @updateMinimapView()
 
   onDragStart: (e) =>
-    # only supports for left-click
+    # Handle left-click only
     return if e.which isnt 1
-    @isPressed = true
     @on 'mousemove.visible-area', @onMove
-    @on 'mouseup.visible-area', @onDragEnd
 
   onMove: (e) =>
-    @onMouseDown e if @isPressed
-
-  onDragEnd: (e) =>
-    @isPressed = false
-    @off '.visible-area'
+    if e.which is 1
+      @onMouseDown e
+    else
+      @off '.visible-area'
 
   # OTHER PRIVATE METHODS
 

      @editorView.scrollTop(@editorView.scrollTop() - wheelDeltaY)

  onMouseDown: (e) =>
    @isClicked = true
    e.preventDefault()
    e.stopPropagation()

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

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