On Mouse Button Down not registering on Buttons
As of the update, my drag and drop operations stopped working, what I narrowed it down to is that the drag operation is not detected because the On Mouse Button Down(Overridden) function does not trigger.
Worked great in 4.16, now it just does not trigger.
Not sure if I am doing something in the old way or if this is just plain wrong (I did debug on this and even though I am on the correct widget, mouse press on the button in the widget registers OK, But the On Mouse Button Down plainly does not register the mouse button down, tried printing just plain string instead of detecting drag and nothing.
Edit0: Moved Drag detect to On Mouse Move(with couple checks) which triggers correctly, but the Overridden function OnDragDetected does not trigger anyway for some reason
Removed and recreated all the overridden functions but they still do not trigger on the events they should be triggering at.
By the way this is created mostly based on this tutorials, with some minor tweaks but the base is the same: https://www.youtube.com/watch?v=wyC5vl64V9k
Edit1: Tested it on Linux and Mac with the same result.
Edit2: After some further experiments it seems that if you create button than the on mouse button down is captured by that button and not sent forward, But if I create just text widget, or size box with image in it the event registers OK and drag is detected and everything works as it should. (Created empty project with everything fresh to test it)
This did work in 4.16!
If anybody wants to reproduce this
same for me
answered Aug 12 '17 at 12:34 PM
Same here, i hope that they will fix this as soon as possible.,
answered Aug 12 '17 at 09:10 PM
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.
answered Aug 16 '17 at 09:25 AM
Change your OnMouseButtonDown to OnPreviewMouseButtonDown in your widget
answered Mar 22 '18 at 05:02 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here