Merge pull request #70069 from bruvzg/rtl_fix_image_click_detection
[RTL] Fix image click detection.
This commit is contained in:
commit
0872e1483b
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…
Add table
Reference in a new issue