You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The .clicked method does not work when used on a dnd item.
To Reproduce
Given code below I do not manage to provide additional click functionality for Button A. Button B works. let dnd = ui.dnd_drag_source(Id::from("dnd_id"), 0, |ui| { let button_a = ui.label("Button A"); if button_a.clicked() { println!("Button A clicked!"); } }); if dnd.response.clicked() { println!("Drag 'n Drop A clicked!"); } let button_b = ui.label("Button B"); if button_b.clicked() { println!("Button B clicked!"); }
Expected behavior
I expect that you can additionally implement click functionality for Button A on top of the drag 'n drop functionality.
Desktop (please complete the following information):
Describe the bug
The
.clicked
method does not work when used on a dnd item.To Reproduce
Given code below I do not manage to provide additional click functionality for Button A. Button B works.
let dnd = ui.dnd_drag_source(Id::from("dnd_id"), 0, |ui| { let button_a = ui.label("Button A"); if button_a.clicked() { println!("Button A clicked!"); } }); if dnd.response.clicked() { println!("Drag 'n Drop A clicked!"); } let button_b = ui.label("Button B"); if button_b.clicked() { println!("Button B clicked!"); }
Expected behavior
I expect that you can additionally implement click functionality for Button A on top of the drag 'n drop functionality.
Desktop (please complete the following information):
Additional context
This issue likely is related to issue Functionality of CollapsingHeader and Drag'nDrop conflicting.
The text was updated successfully, but these errors were encountered: