Skip to content

Commit

Permalink
update button behavior #309
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyanyan committed Aug 17, 2024
1 parent fcb88e3 commit 01c9c7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/function/button.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class Button {
}

bool clicked() {
return f_pressed && !pressed;
return f_pressed && !pressed && !MouseL.pressed();
//return rect.leftClicked() && enabled;
}

Expand Down

0 comments on commit 01c9c7f

Please sign in to comment.