How about onDragEnter handler?
denysdovhan opened this issue · 2 comments
denysdovhan commented
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?
feross commented
Sure, this is easy to support. Released as 2.13.0.
denysdovhan commented
@feross thanks! Nice job!