(slot: TaskListInsertionSlot)
| 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); |
no test coverage detected