Skip to content

Commit

Permalink
fix bug about cancel drag when set sort=false
Browse files Browse the repository at this point in the history
fix bug about cancel drag when set sort=false
  • Loading branch information
why520crazy committed Nov 16, 2015
1 parent 3f34c4d commit 3b424f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
scrollEl = options.scroll;
scrollParentEl = rootEl;

if (scrollEl === true) {
if (scrollEl =_onDragOver== true) {
scrollEl = rootEl;

do {
Expand Down Expand Up @@ -606,7 +606,8 @@
else if (!canSort) {
rootEl.appendChild(dragEl);
}

//fix bug when cancel drag
parentEl = dragEl.parentNode;
return;
}

Expand Down

0 comments on commit 3b424f3

Please sign in to comment.