Skip to content

Commit

Permalink
#254: + check 'effectAllowed' on 'dragover'
Browse files Browse the repository at this point in the history
  • Loading branch information
RubaXa committed Feb 7, 2015
1 parent 7bff435 commit 15d6f07
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,10 @@
isOwner = (activeGroup === group),
canSort = options.sort;

if (evt.dataTransfer && evt.dataTransfer.effectAllowed !== 'move') {
return;
}

if (evt.preventDefault !== void 0) {
evt.preventDefault();
!options.dragoverBubble && evt.stopPropagation();
Expand Down

0 comments on commit 15d6f07

Please sign in to comment.