Skip to content

Commit

Permalink
Merge pull request #6195 from planetarium/fix/tooltip-input-error
Browse files Browse the repository at this point in the history
change conditon to mouse position
  • Loading branch information
jonny-jeahyunchoi authored Oct 23, 2024
2 parents 2086b32 + 5955832 commit 3907166
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nekoyume/Assets/_Scripts/UI/Widget/Tooltip/ItemTooltip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -334,13 +334,12 @@ protected IEnumerator CoUpdate(GameObject target)
yield return null;
}

var positionCache = selectedGameObjectCache.transform.position;

while (enabled)
{
if (Input.GetMouseButtonDown(0))
{
_isClickedTooltipArea = _isPointerOnTooltipArea;
UnityEngine.Vector2 mousePos = Input.mousePosition;
_isClickedTooltipArea = RectTransformUtility.RectangleContainsScreenPoint(panel, mousePos, MainCanvas.instance.Canvas.worldCamera);
}

var current = TouchHandler.currentSelectedGameObject;
Expand Down

0 comments on commit 3907166

Please sign in to comment.