![]() ## 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 |
||
---|---|---|
.. | ||
migration-guides | ||
release-notes | ||
migration_guides_template.md | ||
migration_guides.md | ||
README.md | ||
release_notes_template.md | ||
release_notes.md |
Release Content
This directory contains drafts of documentation for the current development cycle, which will be published to the website during the next release. You can find more information in the release notes and migration guide files.