       else
         currentElement = currentElement.parentElement
 
-isAtomEvent = (event) ->
+isAtomTabEvent = (event) ->
   for item in event.dataTransfer.items
-    if item.type is 'atom-event'
+    if item.type is 'atom-tab-event'
       return true
 
   return false


  onDragOver: (event) ->
    event.preventDefault()
    unless isAtomEvent(event)
      event.stopPropagation()
      return



  # Show the tab bar when a tab is being dragged in this pane when alwaysShowTabBar = false
  onPaneDragEnter: (event) ->
    return unless isAtomTabEvent(event)
    return if @pane.getItems().length > 1 or atom.config.get('tabs.alwaysShowTabBar')
    if @paneElement.contains(event.relatedTarget)
      @element.classList.remove('hidden')

  # Hide the tab bar when the dragged tab leaves this pane when alwaysShowTabBar = false
  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')
