Skip to content

Commit

Permalink
Fix menu buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
fluxxcode committed May 27, 2024
1 parent 7a17a6d commit a218b67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/egui/src/menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit a218b67

Please sign in to comment.