MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / dropToNewArea

Function dropToNewArea

frontend/src/hooks/useCardDragMove.ts:79–90  ·  view source on GitHub ↗
(e: DragEvent, followId: string)

Source from the content-addressed store, hash-verified

77 };
78
79 const dropToNewArea = (e: DragEvent, followId: string) => {
80 if (!containerState.isDesignMode) return;
81 e.preventDefault();
82 removeDragClass(
83 e.target as HTMLElement,
84 "global-placeholder-card",
85 "global-placeholder-card-dragover"
86 );
87 const sourceConfig = JSON.parse(e?.dataTransfer?.getData("text/plain") || "{}");
88 const sourceId = sourceConfig?.id;
89 moveCardItem(sourceId, followId, true);
90 };
91
92 const newAreaDragenter = (e: DragEvent) => {
93 if (!containerState.isDesignMode) return;

Callers

nothing calls this directly

Calls 2

removeDragClassFunction · 0.85
moveCardItemFunction · 0.70

Tested by

no test coverage detected