fix: do not needlessly trigger drop handler UI
parent
bc77c993a9
commit
0ec87126da
|
@ -15,8 +15,10 @@
|
|||
// noop
|
||||
}
|
||||
|
||||
function onDragOver() {
|
||||
dragging = true;
|
||||
function onDragOver(ev: DragEvent) {
|
||||
if (Array.from(ev.dataTransfer.items).some((it) => it.kind === "file")) {
|
||||
dragging = true;
|
||||
}
|
||||
}
|
||||
|
||||
function onDragLeave() {
|
||||
|
|
Loading…
Reference in New Issue