mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
The drop marker should disappear when drag is done.
Previously we make drop marker disappear when drop is done, it would case the marker to live forever if the drop is not done in Atom.
This commit is contained in:
@@ -98,6 +98,8 @@ class TabBarView extends View
|
||||
|
||||
onDragEnd: (event) =>
|
||||
@find(".is-dragging").removeClass 'is-dragging'
|
||||
@children('.is-drop-target').removeClass 'is-drop-target'
|
||||
@children('.drop-target-is-after').removeClass 'drop-target-is-after'
|
||||
|
||||
onDragOver: (event) =>
|
||||
unless event.originalEvent.dataTransfer.getData('atom-event') is 'true'
|
||||
@@ -125,8 +127,6 @@ class TabBarView extends View
|
||||
return
|
||||
|
||||
event.stopPropagation()
|
||||
@children('.is-drop-target').removeClass 'is-drop-target'
|
||||
@children('.drop-target-is-after').removeClass 'drop-target-is-after'
|
||||
|
||||
dataTransfer = event.originalEvent.dataTransfer
|
||||
fromIndex = parseInt(dataTransfer.getData('sortable-index'))
|
||||
|
||||
Reference in New Issue
Block a user