Skip to content

Commit 38e9a53

Browse files
committed
Prevent breaking of drag on attached elements
1 parent 4731aa6 commit 38e9a53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

egui/src/context_menu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub struct ContextMenuSystem {
1515
impl ContextMenuSystem {
1616
/// sense if a context menu needs to be (re-)created or destroyed
1717
fn sense_click(&mut self, response: &Response) -> MenuResponse {
18-
let response = response.interact(Sense::click_and_drag());
18+
let response = response.interact(Sense::click());
1919
let pointer = &response.ctx.input().pointer;
2020
if pointer.any_click() {
2121
if let Some(pos) = pointer.interact_pos() {

0 commit comments

Comments
 (0)