diff --git a/Sortable.js b/Sortable.js index 31386d3..38dbb77 100644 --- a/Sortable.js +++ b/Sortable.js @@ -276,13 +276,6 @@ } } catch (err) { } - - - if (activeGroup.pull == 'clone') { - cloneEl = dragEl.cloneNode(true); - _css(cloneEl, 'display', 'none'); - rootEl.insertBefore(cloneEl, dragEl); - } } }, @@ -347,6 +340,12 @@ this._offUpEvents(); + if (activeGroup.pull == 'clone') { + cloneEl = dragEl.cloneNode(true); + _css(cloneEl, 'display', 'none'); + rootEl.insertBefore(cloneEl, dragEl); + } + if (isTouch) { var rect = dragEl.getBoundingClientRect(), css = _css(dragEl),