On Drag Cancelled not firing after removing widget from parent and readding it.

When I call this function during a drag operation the on drag cancelled event doesn’t fire when the mouse is released. Is there a workaround or am I doing something wrong

the widget with the on drag cancelled event is a child of the card overlay which is a separate widget

Try print string in a loop. ”Hello”.

how is this supposed to help? The on drag cancelled event doesn’t fire when the widget is removed from the parent widget but works fine if it isn’t removed from the parent. also starts working fine again on a new drag and drop operation as long as it is not removed from the parent

Why would you remove it from the parent?

to rearrange the widgets since the last added child shows on top of the first added child

So, card active hand list has proper order?

yes. The function listed above is also simplified currently. If I knew how to share the project I could let you take a look

Instead of removing the child from the parent, maybe there is a “rearrange child positions“ from Card overlay.

the overlay only has a variety of get, clear, remove, has, or add child. nothing on rearranging

So, you call clear children from the parent to this child widget that is going to be removed?

parent which is the (card hand) clears the children (each child is a separate card widget) the card widget has the drag and drop event Ie(on drag cancel)

Where do you actually remove the child from parent? Show it.

function that removes children

Card Overlay is the parent (there is no children assigned as they are assigned at runtime

image

function that adds children to the card overlay

I’m a little Confused what your asking?

full picture of cardHand

event on card widget that not firing when function on first post is ran

I dont see “update widget refrences” being called on canceled.

its not because the issue is that the on dragged canceled event is not firing after I run update widget references during the drag event

Ok, show me where you call update widget refrences.

function that starts the drag and drop (Card Widget)

on drag start sets currently dragging to true (Card Hand Widget)

Change Card Positions function call update references (card Hand Widget

Screenshot 2026-03-24 214927|690x0

If you call “update widget references“ (thus removing the children) it will never trigger on canceled because you removed those children that are trying to check something.

I get that. that is why I pointed out the function in the beginning. I was looking for an alternative to it. I should point out I am following a video lossly so it works in UE 4 versions but doesn’t work in UE 5 Versions (running version 5.5.2)