Skip to content

Commit

Permalink
fixing pointer exit UI issue in 2021.3
Browse files Browse the repository at this point in the history
  • Loading branch information
tbg10101 committed Jun 17, 2022
1 parent ea83fbf commit 3c6ceab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Scripts/Components/UI/PointerMonoBehaviour.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ public void OnPointerEnter(PointerEventData eventData) {
}

public void OnPointerExit(PointerEventData eventData) {
#if UNITY_2021_3_OR_NEWER
if (!eventData.fullyExited) {
return;
}
#endif

_onPointerExit?.Invoke();
}
}
Expand Down

0 comments on commit 3c6ceab

Please sign in to comment.