   onPaneDragEnter: (event) ->
     return unless isAtomTabEvent(event)
     return if @pane.getItems().length > 1 or atom.config.get('tabs.alwaysShowTabBar')
+    return unless itemIsAllowed(event, @location)
     if @paneElement.contains(event.relatedTarget)
       @element.classList.remove('hidden')
 

  onPaneDragLeave: (event) ->
    return unless isAtomTabEvent(event)
    return if @pane.getItems().length > 1 or atom.config.get('tabs.alwaysShowTabBar')
    unless @paneElement.contains(event.relatedTarget)
      @element.classList.add('hidden')


    @clearDropTarget()

  onDragOver: (event) ->
    return unless isAtomTabEvent(event)
    return unless itemIsAllowed(event, @location)

    event.preventDefault()
    event.stopPropagation()

    newDropTargetIndex = @getDropTargetIndex(event)
    return unless newDropTargetIndex?
