Browse Source

+ create 'cloneEl' on dragStart

pull/242/head
RubaXa 10 years ago
parent
commit
8f2aa5eb68
  1. 13
      Sortable.js

13
Sortable.js

@ -276,13 +276,6 @@
} }
} catch (err) { } catch (err) {
} }
if (activeGroup.pull == 'clone') {
cloneEl = dragEl.cloneNode(true);
_css(cloneEl, 'display', 'none');
rootEl.insertBefore(cloneEl, dragEl);
}
} }
}, },
@ -347,6 +340,12 @@
this._offUpEvents(); this._offUpEvents();
if (activeGroup.pull == 'clone') {
cloneEl = dragEl.cloneNode(true);
_css(cloneEl, 'display', 'none');
rootEl.insertBefore(cloneEl, dragEl);
}
if (isTouch) { if (isTouch) {
var rect = dragEl.getBoundingClientRect(), var rect = dragEl.getBoundingClientRect(),
css = _css(dragEl), css = _css(dragEl),

Loading…
Cancel
Save