[RTL] Fix image click detection.

This commit is contained in:
bruvzg 2022-12-14 21:27:00 +02:00
parent c22876e61c
commit dd7b095f7f
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38

View file

@ -150,7 +150,12 @@ RichTextLabel::Item *RichTextLabel::_get_item_at_pos(RichTextLabel::Item *p_item
return it;
}
} break;
case ITEM_IMAGE:
case ITEM_IMAGE: {
offset += 1;
if (offset > p_position) {
return it;
}
} break;
case ITEM_TABLE: {
offset += 1;
} break;