Replies: 2 comments
-
|
I made an even more minimal demo:
The new demo shows that all that it takes to reproduce this is a I also dug into the code a bit. It's interesting that in both 0.31 and 0.32, the rectangle for the Perhaps there was a bug that allowed it to work which was fixed in 0.32? Related code links:
|
Beta Was this translation helpful? Give feedback.
-
|
I've summarized things into an issue: #7390 I'm closing this so we can track it in one place. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In 0.31, I can create a
ui.dnd_drag_source, handle drops onto it, and then draw a right-click context menu on it usingresponse.context_menu()In 0.32, the drag and drop continues to work, but context menu doesn't open.
Minimal demo: https://github.com/Omustardo/egui_drag_and_drop_demo
The symptom is the same as #2471, where upgrading from 0.19 broke context menus for drag and drop items. The symptom feels similar to #2730 in which click and double click events on drag_and_drop zones aren't being passed through to the response. Both of those are old issues though, and this one is very clearly related to the 0.32 update.
From the 0.32 announcement, this issue seems most likely to be related to:
is_popup_openfeels likely, though it would be odd for thecontext_menucall to not handle it internally. I gave it a quick attempt but didn't get anything working.I've been poking at this for probably longer than I should and am hoping someone already knows the answer. I'll look into it more tomorrow.
Beta Was this translation helpful? Give feedback.
All reactions