mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Implement shouldAllowDrag in positive logic for tabs
This commit is contained in:
committed by
probablycorey
parent
916c5caa3a
commit
9655fa8898
@@ -86,9 +86,8 @@ class TabBarView extends SortableList
|
||||
for session in editor.editSessions
|
||||
return true if editSession.getPath() is session.getPath()
|
||||
|
||||
shouldAllowDrag: (event) ->
|
||||
panes = rootView.find('.pane')
|
||||
!(panes.length == 1 && panes.find('.sortable').length == 1)
|
||||
shouldAllowDrag: ->
|
||||
(@paneContainer.getPanes().length > 1) or (@pane.getItems().length > 1)
|
||||
|
||||
onDragStart: (event) =>
|
||||
super
|
||||
|
||||
Reference in New Issue
Block a user