Browse Source

Up Droppable

pull/4695/head
Artur Arseniev 4 years ago
parent
commit
a209518516
  1. 3
      src/utils/Droppable.ts

3
src/utils/Droppable.ts

@ -100,13 +100,12 @@ export default class Droppable {
} }
handleDragEnter(ev: DragEvent | Event) { handleDragEnter(ev: DragEvent | Event) {
const { em } = this; const { em, canvas } = this;
const dt = (ev as DragEvent).dataTransfer; const dt = (ev as DragEvent).dataTransfer;
this.updateCounter(1, ev); this.updateCounter(1, ev);
if (this.over) return; if (this.over) return;
this.over = true; this.over = true;
const utils = em.get('Utils'); const utils = em.get('Utils');
const canvas = em.get('Canvas');
// For security reason I can't read the drag data on dragenter, but // For security reason I can't read the drag data on dragenter, but
// as I need it for the Sorter context I will use `dragContent` or just // as I need it for the Sorter context I will use `dragContent` or just
// any not empty element // any not empty element

Loading…
Cancel
Save