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 4, 2024
1 parent f451936 commit f69c396
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 f69c396

Please sign in to comment.