Skip to content

fix: insertion markers firing move events#7005

Merged
BeksOmega merged 1 commit intoRaspberryPiFoundation:developfrom
BeksOmega:fix/insertion-marker-events
Apr 21, 2023
Merged

fix: insertion markers firing move events#7005
BeksOmega merged 1 commit intoRaspberryPiFoundation:developfrom
BeksOmega:fix/insertion-marker-events

Conversation

@BeksOmega
Copy link
Copy Markdown
Contributor

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide
  • I ran npm run format and npm run lint

The details

Resolves

Fixes #7002

Proposed Changes

Reverts reordering hiding and connecting. It is more efficient to connect "on top" of another connection, because then we can avoid setting the block's parent element twice. But this only saves ~12ms from wrapping an if around the spaghetti blocks. So I think correctness is better in this case.

Test Coverage

Just manual testing.

Documentation

N/A

Additional Information

Broken by #6876

@BeksOmega BeksOmega requested a review from a team as a code owner April 21, 2023 19:23
@BeksOmega BeksOmega requested a review from NeilFraser April 21, 2023 19:23
@github-actions github-actions Bot added the PR: fix Fixes a bug label Apr 21, 2023
@BeksOmega BeksOmega merged commit 35276e9 into RaspberryPiFoundation:develop Apr 21, 2023
BeksOmega added a commit that referenced this pull request Apr 26, 2023
@BeksOmega BeksOmega mentioned this pull request Apr 26, 2023
4 tasks
@BeksOmega BeksOmega deleted the fix/insertion-marker-events branch April 26, 2023 16:23
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.

Insertion markers get disconnected/reconnected before being deleted

2 participants