feross/drag-drop

How about onDragEnter handler?

denysdovhan opened this issue · 2 comments

Thanks for package!

It would be great if we could do something like this:

dragDrop('.container', {
  onDrop(files, pos) {
    console.log('Here are the dropped files', files)
    console.log('Dropped at coordinates', pos.x, pos.y)
  },

  // ---

  onDragEnter() {
    // ...
  }

  // ---

  onDragLeave(e) {
    console.log('dragend', e);
  }
});

What do you think?

Sure, this is easy to support. Released as 2.13.0.

@feross thanks! Nice job!