dnd_drag_source senses issue #5591
Replies: 1 comment
-
Finally solved it by using this: else {
let InnerResponse { inner, response } = ui.scope(add_contents);
// Check for drags:
let dnd_response = response
.interact(Sense::click_and_drag());
if dnd_response.dragged() {
ui.ctx().set_dragged_id(id);
}
InnerResponse::new(inner, dnd_response | response )
} changed checking for drag from |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, I copied egui function dnd_drag_source from UI into my project. Here is what I changed
and how i'm using it
And I can't interact with collapsing with clicking by lmb and rmb.
I just want to have the ability to drag collapsing and interact with it as usual.
Beta Was this translation helpful? Give feedback.
All reactions