MCPcopy Create free account
hub / github.com/Make-md/makemd / getDropLocation

Function getDropLocation

src/basics/flow/patchWorkspaceForFlow.ts:69–79  ·  view source on GitHub ↗
(old)

Source from the content-addressed store, hash-verified

67 },
68
69 getDropLocation(old) {
70 return function getDropLocation(event: MouseEvent) {
71 for (const popover of FlowEditor.activePopovers(plugin.app)) {
72 const dropLoc = this.recursiveGetTarget(event, popover.rootSplit);
73 if (dropLoc) {
74 return dropLoc;
75 }
76 }
77 return old.call(this, event);
78 };
79 },
80 onDragLeaf(old) {
81 return function (event: MouseEvent, leaf: WorkspaceLeaf) {
82 const hoverPopover = FlowEditor.forLeaf(leaf);

Callers

nothing calls this directly

Calls 2

recursiveGetTargetMethod · 0.80
activePopoversMethod · 0.45

Tested by

no test coverage detected