UMG IsHovered always returns true after mouse drag
In my game I have some buttons that appear when you hover over an image. I do this by having the Event Tick check "is Hovered" for the image and buttons that appear and then is any of those widgets are hovered it sets a bool to true which the buttons visibility is bound too.
Everything works great/as expected, except for if I hover over anything and then hold down the left mouse button and drag off the hovered widgets. The ishovered continues to return true until I next Enter/Exit the widget I dragged from.
In the image below you can see me hovering over a card to make the pop up menu appear and a few other cards have their menus incorrectly since I dragged off them as described.
asked Jul 09 '16 at 04:08 PM in Bug Reports
This appears to be a known issue (UE-32910) and it has been submitted to the developers for further consideration. I have provided a link to the original issue below. Please feel free to visit the linked thread for future updates.
Make it a great day
answered Jul 11 '16 at 05:02 PM
Rudy Q ♦♦ STAFF
I did a workaround. I used OnMouseEnter and OnMouseLeave for my UserWidget to update a variable created by me.
I think there is a bug in the c++ implementation of widgets and IsHovered is not reliable. ( In c++, it does the same thing, but the base class functionality gets lost somewhere in the inherited classes)
answered Sep 16 '16 at 08:53 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here