You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
Check if cursor is inside meta when getting cursor shape
This commit is contained in:
@@ -1063,10 +1063,10 @@ Control::CursorShape RichTextLabel::get_cursor_shape(const Point2 &p_pos) const
|
|||||||
|
|
||||||
int line = 0;
|
int line = 0;
|
||||||
Item *item = NULL;
|
Item *item = NULL;
|
||||||
|
bool outside;
|
||||||
|
((RichTextLabel *)(this))->_find_click(main, p_pos, &item, &line, &outside);
|
||||||
|
|
||||||
((RichTextLabel *)(this))->_find_click(main, p_pos, &item, &line);
|
if (item && !outside && ((RichTextLabel *)(this))->_find_meta(item, NULL))
|
||||||
|
|
||||||
if (item && ((RichTextLabel *)(this))->_find_meta(item, NULL))
|
|
||||||
return CURSOR_POINTING_HAND;
|
return CURSOR_POINTING_HAND;
|
||||||
|
|
||||||
return CURSOR_ARROW;
|
return CURSOR_ARROW;
|
||||||
|
|||||||
Reference in New Issue
Block a user