File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -3900,14 +3900,6 @@ void Control::_notification(int p_notification) {
3900
3900
RenderingServer::get_singleton ()->canvas_item_set_clip (get_canvas_item (), data.clip_contents );
3901
3901
} break ;
3902
3902
3903
- case NOTIFICATION_MOUSE_ENTER: {
3904
- emit_signal (SceneStringName (mouse_entered));
3905
- } break ;
3906
-
3907
- case NOTIFICATION_MOUSE_EXIT: {
3908
- emit_signal (SceneStringName (mouse_exited));
3909
- } break ;
3910
-
3911
3903
case NOTIFICATION_FOCUS_ENTER: {
3912
3904
emit_signal (SceneStringName (focus_entered));
3913
3905
queue_redraw ();
Original file line number Diff line number Diff line change @@ -2610,6 +2610,7 @@ void Viewport::_gui_update_mouse_over() {
2610
2610
// Send Mouse Exit notifications.
2611
2611
for (int exit_control_index : needs_exit) {
2612
2612
gui.mouse_over_hierarchy [exit_control_index]->notification (Control::NOTIFICATION_MOUSE_EXIT);
2613
+ gui.mouse_over_hierarchy [exit_control_index]->emit_signal (SceneStringName (mouse_exited));
2613
2614
}
2614
2615
2615
2616
// Update the mouse over hierarchy.
@@ -2621,6 +2622,7 @@ void Viewport::_gui_update_mouse_over() {
2621
2622
// Send Mouse Enter notifications.
2622
2623
for (int i = needs_enter.size () - 1 ; i >= 0 ; i--) {
2623
2624
needs_enter[i]->notification (Control::NOTIFICATION_MOUSE_ENTER);
2625
+ needs_enter[i]->emit_signal (SceneStringName (mouse_entered));
2624
2626
}
2625
2627
2626
2628
gui.sending_mouse_enter_exit_notifications = false ;
You can’t perform that action at this time.
0 commit comments