A bug occurs where button hit detection exists outside of the app window

I’m developing an application for Windows OS.
Specifically, when I run the application on a windowed screen, hit detection responses to the mouse cursor outside the window occur.
In the attached image, button hit detection is performed in the red area, and when the mouse cursor is moved, events such as OnPointerEnter and OnPointerExit occur.
There is also hit detection for buttons inside the window.
If you have any insights into the cause or methods for improvement, I would appreciate your guidance.

■Unity Editor version
2021.3.8f1

■Target platform
Windows64

Self resolved.
Upgrading to 3.15f1 solved the problem.