Skip to content

Commit

Permalink
Removed the alteration of status.hovering during Focus Enter and Focu…
Browse files Browse the repository at this point in the history
…s Exit events. This is incorrect and not fully implemented, and results in inconsistency in the UI and in the hovering variable.
  • Loading branch information
jasonwinterpixel committed Mar 23, 2021
1 parent 7acd628 commit edcbe88
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions scene/gui/base_button.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,14 @@ void BaseButton::_notification(int p_what) {
}

if (p_what == NOTIFICATION_FOCUS_ENTER) {
status.hovering = true;
update();
}

if (p_what == NOTIFICATION_FOCUS_EXIT) {
if (status.press_attempt) {
status.press_attempt = false;
status.hovering = false;
update();
} else if (status.hovering) {
status.hovering = false;
update();
}
}
Expand Down

0 comments on commit edcbe88

Please sign in to comment.