You've already forked godot
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user