## produce a DragEnter event when reentering the dragged entity
when making a piano, i want dragging across the keys to trigger the
notes of each key, but currently if i drag out of a key, then back to
it, this will not work since the dragged entity gets filtered out
## Solution
- make DragEnter event work whenever there's an entry. if the user wants
to ignore the dragged entity they can compare `target` and `dragged`
## Testing
- tested this with a modified version of the 2d_shapes example. i added
an observer to the entities: (and added mesh picking plugin)
```rust
.observe(|t: Trigger<Pointer<DragEnter>>| {
info!("entered {}, started from {}", t.target(), t.dragged);
}
```
- i'm not sure if other things need more testing, or if this is wrong
completely and breaks other things i don't know of!
---
## Showcase
before:
https://github.com/user-attachments/assets/48de606a-e44d-4ca1-ae16-d8dcef640d6e
after:
https://github.com/user-attachments/assets/b1be231f-c826-47bc-be43-c637f22e7846
|
||
|---|---|---|
| .. | ||
| .gitkeep | ||
| anchor_is_removed_from_sprite.md | ||
| dragenter_includes_dragged_entity.md | ||
| entity_representation.md | ||
| generic-option-parameter.md | ||
| interned-labels-cleanup.md | ||
| log-diagnostics-hash-set.md | ||
| merge_observerState_observer_single_component.md | ||
| observers_may_not_be_exclusive.md | ||
| overflowclipbox_default_is_now_paddingbox.md | ||
| per-world-error-handler.md | ||
| picking_location_not_component.md | ||
| remove_archetypecomponentid.md | ||
| remove_deprecated_batch_spawning.md | ||
| rename_condition.md | ||
| rename_spawn_gltf_material_name.md | ||
| rename_StateScoped.md | ||
| separate-border-colors.md | ||
| simple_executor_going_away.md | ||
| system_set_naming_convention.md | ||