Detect Drag and onClicked conflict

anonymous_user_1dedd871
Wed, 30 Dec 2020 16:38:48 +0000
UI

Hello!
I’m trying to implement Drag and Drop system in my Inventory, but i’ve encountered a problem - when i override OnPreviewMouseButton event and put “Detect Drag if pressed” node in there, event onClicked stops working - it works only with second click, if i press the button twice, like if Detect Drag consumes the first click.

I’ve tried to use “Precise click” in button settings, but it doesn’t help.

Here’s my widget with button:

How can i make Detect Drag and onClicked work together?

6 posts - 4 participants