MCPcopy Create free account
hub / github.com/ScattrdBlade/bigFileUpload / handleDragOver

Function handleDragOver

index.tsx:143–149  ·  view source on GitHub ↗
(event: DragEvent)

Source from the content-addressed store, hash-verified

141}
142
143function handleDragOver(event: DragEvent): void {
144 if (!settings.store.bypassDragDrop) return;
145 if (!isChatAreaDrop(event.target)) return;
146 if (Array.from(event.dataTransfer?.types || []).includes("Files")) {
147 event.preventDefault();
148 }
149}
150
151function handleFileDrop(event: DragEvent): void {
152 const files = Array.from(event.dataTransfer?.files || []);

Callers 1

startFunction · 0.85

Calls 1

isChatAreaDropFunction · 0.85

Tested by

no test coverage detected