Skip to content

Commit

Permalink
fix: dragging shadows not reverting them to their original position
Browse files Browse the repository at this point in the history
  • Loading branch information
BeksOmega committed Apr 3, 2024
1 parent 12fafcf commit c16d490
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/dragging/block_drag_strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,11 @@ export class BlockDragStrategy implements IDragStrategy {
* including reconnecting connections.
*/
revertDrag(): void {
if (this.block.isShadow()) {
this.block.getParent()?.revertDrag();
return;
}

this.startChildConn?.connect(this.block.nextConnection);
if (this.startParentConn) {
switch (this.startParentConn.type) {
Expand Down

0 comments on commit c16d490

Please sign in to comment.