Can't cancel a drag event
adamtal3 opened this issue · comments
Adam Tal commented
I want the drop frame to only be visible if the user drags a file.
I tried adding return false
to onDragOver
and to onFrameDragEnter
in case event.dragTransfer.types.indexOf('Files') === (-1)
but the return value is ignored so there's no way to stop the drop zone from showing up.