1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00

[RTL] Fix image click detection.

This commit is contained in:
bruvzg
2022-12-14 21:27:00 +02:00
parent c22876e61c
commit dd7b095f7f

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;