Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: dragging blocks by shadows to delete #8138

Merged
merged 4 commits into from
May 17, 2024

Conversation

BeksOmega
Copy link
Collaborator

The basics

The details

Resolves

Fixes #8137

Proposed Changes

Reverts the old code for dragging shadows, which delegated to parents, and instead just select the parent from the beginning.

Click events still get fired on the shadow though because that's based on the start blocks not the selection.

Test Coverage

Manually tested dragging and deleting by shadows.

Documentation

N/A

Additional Information

N/A

@BeksOmega BeksOmega requested a review from a team as a code owner May 16, 2024 22:44
@BeksOmega BeksOmega requested a review from cpcallen May 16, 2024 22:44
@github-actions github-actions bot added the PR: fix Fixes a bug label May 16, 2024
core/block_svg.ts Outdated Show resolved Hide resolved
@BeksOmega BeksOmega merged commit 3fd7492 into google:develop May 17, 2024
6 checks passed
BeksOmega added a commit to BeksOmega/blockly that referenced this pull request May 22, 2024
BeksOmega added a commit that referenced this pull request May 28, 2024
* Revert "fix: dragging blocks by shadows to delete (#8138)"

This reverts commit 3fd7492.

* fix: dragging shadows
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.

Can't delete blocks that are being dragged by a shadow child
2 participants