[RTL] Fix image click detection.
This commit is contained in:
parent
c22876e61c
commit
dd7b095f7f
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue