Skip to content

Commit

Permalink
Merge pull request #257 from sundaram123krishnan/main
Browse files Browse the repository at this point in the history
Toggle Menu Bar on Click
  • Loading branch information
genusistimelord authored Jul 14, 2024
2 parents dfa670d + b06b22c commit 752c573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/menu/menu_bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ where
}
Event::Mouse(mouse::Event::ButtonReleased(mouse::Button::Left)) => {
if cursor.is_over(bar_bounds) && bar.is_pressed {
bar.open = true;
bar.open = !bar.open;
bar.is_pressed = false;
for (i, l) in layout.children().enumerate() {
if cursor.is_over(l.bounds()) {
Expand Down

0 comments on commit 752c573

Please sign in to comment.