Skip to content

fix: always store initial drag connections#9851

Merged
mikeharv merged 1 commit into
RaspberryPiFoundation:v13from
mikeharv:store-initial-connections
May 11, 2026
Merged

fix: always store initial drag connections#9851
mikeharv merged 1 commit into
RaspberryPiFoundation:v13from
mikeharv:store-initial-connections

Conversation

@mikeharv
Copy link
Copy Markdown
Contributor

@mikeharv mikeharv commented May 11, 2026

The basics

The details

Resolves

This fixes an untracked bug that could cause revertDrag() to work incorrectly when the current drag had previously stored an initial valid parent or child connection.

Screen.Recording.2026-05-11.at.3.44.51.PM.mov

Proposed Changes

This change guarantees BlockDragStrategy.storeInitialConnections() will be called as part of every startMove.

Reason for Changes

This BlockDragStrategy method relies on storeInitialConnections() to store the current parent and child blocks at the start of a drag. However, this was only happening if a move was started that should cause a disconnect.

Screen.Recording.2026-05-11.at.3.42.50.PM.mov

@mikeharv mikeharv requested a review from a team as a code owner May 11, 2026 19:41
@mikeharv mikeharv requested a review from lizschwab May 11, 2026 19:41
@github-actions github-actions Bot added PR: fix Fixes a bug and removed PR: fix Fixes a bug labels May 11, 2026
@gonfunko gonfunko self-requested a review May 11, 2026 21:18
@gonfunko gonfunko assigned gonfunko and unassigned lizschwab May 11, 2026
@gonfunko gonfunko removed the request for review from lizschwab May 11, 2026 21:18
@mikeharv mikeharv merged commit 5b9dd54 into RaspberryPiFoundation:v13 May 11, 2026
12 checks passed
@mikeharv mikeharv deleted the store-initial-connections branch May 11, 2026 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: fix Fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants