Widget: Hover works, right-click works, left-click needs double-clicking. Why??

I encountered this problem in my inventory’s slot buttons. I was looking into focus problems but it’s not that. Hovers, Unhovers, Right-clicks, all work like a charm. The left-click needs double-clicking. I really can’t find a solution and getting desperate. None of the threads I read applies to this, I tried all the project settings solutions too. Any ideas, please?

Could you explain what you’re left clicking? There must be something unique about your setup. Normally, left click just works. It might be the way the tunnelling is Handled / Unhandled, for example.

is there an additional child widget like text or image on top (below in sense of object tree) the button widget?
can you try to click next to this overlaying object into the ‘pure’ button area?

It’s a button. The inventory spawns buttons at the start of the game, and the whole inventory widget is part of one main widget that has many widgets in it. But hovering and right click work fine so it can’t be a focusing problem, I checked everything in that matter.

There can’t be anything obstructing, right-click and hovers work right away.

So I found what was wrong. I saw that for the right-click there just was an “OnRightClick” function, and not the regular “OnClicked”. I found two Mouse Overrides I don’t remember why and how I made. One for left click and one for right. The left-click was missing the event. I added it, and all works fine. The funny thing is it all worked fine for more than a year, and without doing anything to the overrides, but after some work on the widget, this problem started to appear. All ok now, although it is kind of an X-Files problem to me, which means even though I solved it, I have no idea how it happened. All those events have been there untouched for more than a year, I only messed with widget graphics.

1 Like