Skip to content

Commit

Permalink
don't trigger start event when an element is been dragged, otherwise …
Browse files Browse the repository at this point in the history
…the evt.oldindex always wrong when set option.group.
  • Loading branch information
why520crazy committed Nov 10, 2015
1 parent 51337f7 commit 6761341
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,10 @@
target = (touch || evt).target,
originalTarget = target,
filter = options.filter;


// don't trigger start event when an element is been dragged, otherwise the evt.oldindex always wrong when set option.group.
if(dragEl){
return;
}
if (type === 'mousedown' && evt.button !== 0 || options.disabled) {
return; // only left button or enabled
}
Expand Down

0 comments on commit 6761341

Please sign in to comment.