fix: Drag immovable and shadow blocks along with their parent. by gonfunko · Pull Request #9281 · RaspberryPiFoundation/blockly
The basics
The details
Resolves
Fixes RaspberryPiFoundation/blockly-keyboard-experimentation#678
Proposed Changes
This PR fixes a bug that could cause a dragged block to disconnect from its immovable/shadow next sibling(s), rather than bring them along for the ride. This could happen in core while holding command/control to drag a single block vs the entire stack, and in the keyboard experiment repo when entering move mode for a block with such siblings. Now, in single-block-drag or keyboard-experiment move mode, moving a "single" block will bring along all contiguous subsequent siblings that are immovable or shadows, and, if stack healing is on, connect the previous block and the first normal next-sibling around the group of blocks that was detached.