     (@paneContainer.getPanes().length > 1) or (@pane.getItems().length > 1)
 
   onDragStart: (event) ->
-    return unless matches(event.target, '.sortable')
+    @draggedTab = @tabForElement(event.target)
+    return unless @draggedTab
 
     event.dataTransfer.setData 'atom-event', 'true'
 
-    @draggedTab = @tabForElement(event.target)
     @draggedTab.element.classList.add('is-dragging')
     @draggedTab.destroyTooltip()
 

    @removeDropTargetClasses()

    tabBar = event.target.closest('.tab-bar')
    sortableObjects = tabBar.querySelectorAll(".sortable")
    placeholder = @getPlaceholder()
    return unless placeholder?


    @removePlaceholder()

  onDragEnd: (event) ->
    return unless @tabForElement(event.target)

    @clearDropTarget()

