Skip to content

Commit 786ff95

Browse files
committed
Ctx menu pos input system issue fixed
1 parent 25720d7 commit 786ff95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/RuntimeNodeEditor/Scripts/Utility.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static Vector2 GetCtxMenuPointerPosition(RectTransform rect)
3434
out localPointerPos);
3535
#endif
3636
#if ENABLE_INPUT_SYSTEM
37-
success = RectTransformUtility.ScreenPointToLocalPointInRectangle(_contextMenuContainer,
37+
success = RectTransformUtility.ScreenPointToLocalPointInRectangle(rect,
3838
UnityEngine.InputSystem.Mouse.current.position.ReadValue(),
3939
null,
4040
out localPointerPos);

0 commit comments

Comments
 (0)