-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Fix dragging-over panic #21999
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
Merged
alice-i-cecile
merged 7 commits into
bevyengine:main
from
ickshonpe:fix-dragging-over-panic
Dec 3, 2025
Merged
Fix dragging-over panic #21999
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
2e114dc
The `picking_events` system doesn't add a dragged over entity to the …
ickshonpe aae026c
Dispatch `DragEnter` and update the stateimmediately after `DragStar…
ickshonpe 4ff9d6f
Added migration guide.
ickshonpe 1b5da4b
Fixed migration guide.
ickshonpe 37b1756
Removed leading space from migration guide.
ickshonpe 396a94f
Update crates/bevy_picking/src/events.rs
ickshonpe c7ce190
Merge branch 'main' into fix-dragging-over-panic
ickshonpe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
release-content/migration-guides/dragenter-now-fires-on-drag-starts.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| title: "DragEnter now fires on drag starts" | ||
| pull_requests: [21999] | ||
| --- | ||
|
|
||
| `DragEnter` now also fires when a drag starts over an already hovered entity. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this was the line that caused the panic. Is it valid to delete this line? Is it because it’s redundant now with the logic you put in?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, this line was a fix for another bug: #21849. It's redundant with this PR as the
dragging_overstates are already updated before thePointerInputs are processed.