fix: dragging and disposing of shadows (#8172)

* Revert "fix: dragging blocks by shadows to delete (#8138)"

This reverts commit 3fd749205f.

* fix: dragging shadows
This commit is contained in:
Beka Westberg
2024-05-28 17:28:16 +00:00
committed by GitHub
parent 933e210037
commit 6e4ba00be5
4 changed files with 73 additions and 33 deletions

View File

@@ -1015,7 +1015,7 @@ export class Gesture {
// If the gesture already went through a bubble, don't set the start block.
if (!this.startBlock && !this.startBubble) {
this.startBlock = block;
common.setSelected(this.startBlock.getFirstNonShadowBlock());
common.setSelected(this.startBlock);
if (block.isInFlyout && block !== block.getRootBlock()) {
this.setTargetBlock(block.getRootBlock());
} else {