Merge pull request #78078 from Sauermann/fix-drop-physics-mouse-over
Ensure that `_drop_physics_mouseover` only happens when necessary
This commit is contained in:
commit
7961bc6193
1 changed files with 3 additions and 3 deletions
|
@ -1875,13 +1875,13 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (over != gui.mouse_over) {
|
if (over != gui.mouse_over) {
|
||||||
|
if (!gui.mouse_over) {
|
||||||
|
_drop_physics_mouseover();
|
||||||
|
}
|
||||||
_drop_mouse_over();
|
_drop_mouse_over();
|
||||||
_gui_cancel_tooltip();
|
_gui_cancel_tooltip();
|
||||||
|
|
||||||
if (over) {
|
if (over) {
|
||||||
if (!gui.mouse_over) {
|
|
||||||
_drop_physics_mouseover();
|
|
||||||
}
|
|
||||||
_gui_call_notification(over, Control::NOTIFICATION_MOUSE_ENTER);
|
_gui_call_notification(over, Control::NOTIFICATION_MOUSE_ENTER);
|
||||||
gui.mouse_over = over;
|
gui.mouse_over = over;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue