I’ve tried disconnecting everything but the “is mouse button down” from the branch and still nothing.
If i preview the blue print while in play and double click in game the active route (sorry dont know its proper name) doesnt appear at all)
I have tried decreasing the required speed of the double click in the project settings and have my player controller set to: Show mouse cursor: True, Enable Click events: True, Enable Mouse Over events: True
This is workaround suitable only for your project. Not everybody can replace button with different element. Broken On Mouse Button event for left mouse click is 4.17 bug and hopefully it will be fixed soon.
and to tell you the truth, problem is not only here, problem is everywhere what is connected to pressing left mouse button. The interesting thing is that everything works correctly, when the slot is empty. What I mean is every event fires correctly. But when the slot is filled, then problems arise.
No everything right. We both overrided standart functions that fire automatically when user presses mouse button. The thing is that when right mouse button is used everything works and left mouse button worls only when the slot is empty.
Well, I’m not a wizard and you can’t expect me or others to watch the whole tutorial and re-create everything, so adding what function you overwrote and where you call this function would be great to know.
Create a new project. (im using top down template for this example)
Create a widget and place a button on the canvas
override the function “OnMouseButtonDoubleClick”
drag off the OnMouseButtonDoubleClick and place a print string,
connect to return node and place a “handled” on the return value
save, compile, hit play
double left click, nothing
double right click or double middle mouse click and you WILL get the text.
It seems to be only on the left mouse button that there is an issue.
I’ve fixed this with the help of some none on the forum. It involves a little tom foolery but it works
If you make the the widget like this instead
[Overlay]
. [Border]
. [Image]
. [Text]
The do everything as you would have before but replace the button with the border and the set style with set brush
Then override the functions “one mouse enter” and “on mouse leave” and just set the brush in those to (OME) hovered brush and (OML) default brush it functions in exactly the same way as the button does.
Another solution for this project
Duplicate onmousebuttondoubleclick
Run Onclicked(slotbutton) - Make your own doubleclickfunk as in throw widget on ‘-’ and ‘+’ buttons(incr,delay 0.3, click count etc…) Not so good but easy and fast
ps Anyone knows is it really bug?
Is that me or does this problem stil occurs on 4.22 ?
I can’t manage to get my picture widget’s OnMouseDoubleClick event to fire when double clicking on left button, while it works with right button and with mouse up/down events :