From a218b6766f3acac78843975d7709a8301a9e298e Mon Sep 17 00:00:00 2001 From: fluxxcode Date: Mon, 27 May 2024 19:50:14 +0200 Subject: [PATCH] Fix menu buttons --- crates/egui/src/menu.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/egui/src/menu.rs b/crates/egui/src/menu.rs index 84fd1b2e8e3..85b4edc0fbc 100644 --- a/crates/egui/src/menu.rs +++ b/crates/egui/src/menu.rs @@ -356,6 +356,7 @@ impl MenuRoot { } else if button .ctx .input(|i| i.pointer.any_pressed() && i.pointer.primary_down()) + && !button.contains_pointer() { if let Some(pos) = button.ctx.input(|i| i.pointer.interact_pos()) { if let Some(root) = root.inner.as_mut() {