-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
A-PickingPointing at and selecting objects of all sortsPointing at and selecting objects of all sortsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorP-CrashA sudden unexpected crashA sudden unexpected crashP-RegressionFunctionality that used to work but no longer does. Add a test for this!Functionality that used to work but no longer does. Add a test for this!S-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!This issue is ready for an implementation PR. Go for it!
Description
Bevy version and features
Bevy main
What you did
Run one of these examples and try and drag something:
cargo run --example standard_widgets --features="experimental_bevy_ui_widgets"
cargo run --example ui_drag_and_drop
What went wrong
picking_events doesn't add a dragged over entity to the dragged_over map in PointerButtonState if the drag started with the dragged over entity already hovered . This causes a panic when the pointer is moved and picking_events tries to update the dragging_over state for the hovered entity.
Metadata
Metadata
Assignees
Labels
A-PickingPointing at and selecting objects of all sortsPointing at and selecting objects of all sortsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorP-CrashA sudden unexpected crashA sudden unexpected crashP-RegressionFunctionality that used to work but no longer does. Add a test for this!Functionality that used to work but no longer does. Add a test for this!S-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!This issue is ready for an implementation PR. Go for it!