After reading through the code it seems that this is happening because when a button animates its position underneath the mouse and the mouse isn’t moving that doesn’t trigger the SButton::OnMouseEnter event. I ended up fixing this by modifying SButton::OnMouseButtonUp to consider a click on a button as valid even if the button isn’t currently considered to be hovered. This does mean that in this scenario where the button animates in it won’t hover until you move the mouse out and into its bounds, but for me this was acceptable.
Here is my fix, I just commented out the IsTouchEvent check so clicks are accepted as long as the mouse is over the button.
Thank you for the solution!
I actually found another way to fix the click event,but I still want the hover event to be fixed.
So I will leave this topic unsolved.
And my fix is changing the click method to “precise click”