mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Make shouldAllowDrag method work properly
This commit is contained in:
committed by
probablycorey
parent
47621bd3b2
commit
28141e315e
@@ -14,7 +14,9 @@ class SortableList extends View
|
||||
@on 'drop', '.sortable', @onDrop
|
||||
|
||||
onDragStart: (event) =>
|
||||
return false if !@shouldAllowDrag(event)
|
||||
unless @shouldAllowDrag(event)
|
||||
event.preventDefault()
|
||||
return
|
||||
|
||||
el = @getSortableElement(event)
|
||||
el.addClass 'is-dragging'
|
||||
|
||||
Reference in New Issue
Block a user