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