[bug] Incorrect work of DragAndDrop logic

Hello everyone, looks like I found bug in UMG system.

In two words, if you create for example inventory, usually you have parent widget with array of inventory slots which populated in some wrapBox. And actually InventorySlot widgets are populated. Also you want to add swap slots functionality. So you add DragAndDrop logic to your InventorySlots. And it where this bug is. If you dragged your InventorySlot over rest slots, some of rest slots ignore him.

It works correctly in 4.23, but broken in 4.26 - 5.0.2
This is gameplay example of bug, compared same project in 4.23 vs 4.26

I recreated it on the video above.

Also I uploaded project to google drive
https://drive.google.com/file/d/1LKD1MtUwwlheXkFtxWhEqiZcbTaPOQyS/

I want to update my post, I have found main reason of this bug.

This bug happens if I use “self” as DefaultDragVisual only. If I use no DefaultDragVisual or create new widget for it, everything works as expected.

1 Like