 
       atom.focus()
 
+  onPaneDragEnter: (event) ->
+    return if @pane.getItems().length > 1
+    if @paneElement.contains(event.relatedTarget)
+      @element.classList.remove('hidden')
+
+  onPaneDragLeave: (event) ->
+    return if @pane.getItems().length > 1
+    unless @paneElement.contains(event.relatedTarget)
+      @element.classList.add('hidden')
+
   onMouseWheel: (event) ->
     return if event.shiftKey
 

    @tabsByElement = new WeakMap
    @subscriptions = new CompositeDisposable

    @subscriptions.add atom.commands.add @pane.getElement(),
      'tabs:keep-pending-tab': => @terminatePendingStates()
      'tabs:close-tab': => @closeTab(@getActiveTab())
      'tabs:close-other-tabs': => @closeOtherTabs(@getActiveTab())

    @element.addEventListener "dragleave", @onDragLeave.bind(this)
    @element.addEventListener "dragover", @onDragOver.bind(this)
    @element.addEventListener "drop", @onDrop.bind(this)

    @paneElement.addEventListener 'dragenter', @onPaneDragEnter.bind(this)
    @paneElement.addEventListener 'dragleave', @onPaneDragLeave.bind(this)

    @paneContainer = @pane.getContainer()
    @addTabForItem(item) for item in @pane.getItems()
