Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/actions/mover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,6 @@ export class Mover {
dragStrategy.isNewBlock,
);

// Explicitly call `hidePreview` because it is not called in revertDrag.
// @ts-expect-error Access to private property connectionPreviewer.
dragStrategy.connectionPreviewer.hidePreview();

// Save the position so we can put the cursor in a reasonable spot.
// @ts-expect-error Access to private property connectionCandidate.
const target = dragStrategy.connectionCandidate?.neighbour;
Expand Down
2 changes: 0 additions & 2 deletions src/keyboard_drag_strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ export class KeyboardDragStrategy extends dragging.BlockDragStrategy {
// @ts-expect-error connectionCandidate is private.
this.connectionCandidate = this.createInitialCandidate();
this.forceShowPreview();
// @ts-expect-error block is private.
this.block.addIcon(new MoveIcon(this.block));
}

Expand Down Expand Up @@ -100,7 +99,6 @@ export class KeyboardDragStrategy extends dragging.BlockDragStrategy {

override endDrag(e?: PointerEvent) {
super.endDrag(e);
// @ts-expect-error block is private.
this.block.removeIcon(MoveIcon.type);
}

Expand Down
Loading