Merge pull request #34912 from timothyqiu/mouse-exit

Emits meta_hover_ended when mouse exit RichTextLabel
This commit is contained in:
Rémi Verschelde 2020-01-08 14:54:51 +01:00 committed by GitHub
commit b942f488b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -935,6 +935,14 @@ void RichTextLabel::_notification(int p_what) {
switch (p_what) {
case NOTIFICATION_MOUSE_EXIT: {
if (meta_hovering) {
meta_hovering = NULL;
emit_signal("meta_hover_ended", current_meta);
current_meta = false;
update();
}
} break;
case NOTIFICATION_RESIZED: {
main->first_invalid_line = 0; //invalidate ALL