MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / updateDropSlotPreview

Method updateDropSlotPreview

src/bases/TaskListView.ts:1122–1136  ·  view source on GitHub ↗
(slot: TaskListInsertionSlot)

Source from the content-addressed store, hash-verified

1120 }
1121
1122 private updateDropSlotPreview(slot: TaskListInsertionSlot): void {
1123 const { element, position } = slot;
1124 if (element === this.currentDropSlotElement && position === this.currentDropSlotPosition) {
1125 return;
1126 }
1127
1128 this.clearDropIndicators();
1129 element.classList.add(
1130 position === "before"
1131 ? "task-list-view__drop-slot-before"
1132 : "task-list-view__drop-slot-after"
1133 );
1134 this.currentDropSlotElement = element;
1135 this.currentDropSlotPosition = position;
1136 }
1137
1138 private updateResolvedInsertionSlot(clientY: number): boolean {
1139 const insertionSlot = this.resolveClosestInsertionSlot(clientY);

Calls 1

clearDropIndicatorsMethod · 0.95

Tested by

no test coverage detected