MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / handleAppInstallDragEnter

Function handleAppInstallDragEnter

packages/client/src/app/AppShell.tsx:2681–2691  ·  view source on GitHub ↗
(event: React.DragEvent<HTMLElement>)

Source from the content-addressed store, hash-verified

2679 }
2680
2681 function handleAppInstallDragEnter(event: React.DragEvent<HTMLElement>) {
2682 if (!dragEventHasFiles(event.dataTransfer)) {
2683 return;
2684 }
2685 event.preventDefault();
2686 event.stopPropagation();
2687 appInstallDragDepthRef.current += 1;
2688 if (appInstallState?.phase !== "installing") {
2689 setAppInstallState({ phase: "dragging" });
2690 }
2691 }
2692
2693 function handleAppInstallDragOver(event: React.DragEvent<HTMLElement>) {
2694 if (!dragEventHasFiles(event.dataTransfer)) {

Callers

nothing calls this directly

Calls 1

dragEventHasFilesFunction · 0.85

Tested by

no test coverage detected