From 4225006a65078a414bef5bc012aee1168f1bb7bc Mon Sep 17 00:00:00 2001 From: Daze Date: Fri, 1 Nov 2024 02:17:40 +0000 Subject: [PATCH] Tooltip position fix --- .../ui/blocks/utilities/drag_drop_area/drag_drop_area.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/block_code/ui/blocks/utilities/drag_drop_area/drag_drop_area.gd b/addons/block_code/ui/blocks/utilities/drag_drop_area/drag_drop_area.gd index c333a68b..c0eafa10 100644 --- a/addons/block_code/ui/blocks/utilities/drag_drop_area/drag_drop_area.gd +++ b/addons/block_code/ui/blocks/utilities/drag_drop_area/drag_drop_area.gd @@ -105,7 +105,7 @@ func _menu_pressed(_index: int, _context_menu: PopupMenu): var _tooltip := parent_block._make_custom_tooltip(parent_block.get_tooltip()) var _tooltip_window := Popup.new() - _tooltip_window.position = get_global_mouse_position() + _tooltip_window.position = DisplayServer.mouse_get_position() _tooltip_window.popup_hide.connect(_cleanup) _tooltip_window.add_child(_tooltip) add_child(_tooltip_window)