diff --git a/packages/sprotty/src/features/move/move.ts b/packages/sprotty/src/features/move/move.ts index 57be622..6cc06fc 100644 --- a/packages/sprotty/src/features/move/move.ts +++ b/packages/sprotty/src/features/move/move.ts @@ -221,9 +221,8 @@ export class MoveCommand extends MergeableCommand implements IStoppableCommand { } return false; }; - const isChildOfMovedElement = recursiveCheck(sourceOrTarget); - return isChildOfMovedElement || Boolean(this.resolvedMoves.get(sourceOrTarget.id)); + return Boolean(this.resolvedMoves.get(sourceOrTarget.id)) || recursiveCheck(sourceOrTarget); }; return Boolean(