Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
NQNStudios committed Jul 5, 2024
1 parent c251fee commit 9e7b115
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/dialogxml/widgets/container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ bool cContainer::handleClick(location where) {
std::string which_clicked;
bool success = false;
forEach([&](std::string id, cControl& ctrl) {
if(ctrl.isClickable() && ctrl.getBounds().contains(where)) {
success = ctrl.handleClick(where);
which_clicked = id;
if(!success && ctrl.isClickable() && ctrl.getBounds().contains(where)) {
if(ctrl.handleClick(where)){
success = true;
which_clicked = id;
}
}
});
if(!which_clicked.empty())
Expand Down

0 comments on commit 9e7b115

Please sign in to comment.