Drag and Drop Operation Drag Visual Widget Spawn Left Top1

Hello, please forgive my poor English
I’m implementing drag and drop, and dragging from a rectangular widget creates a small square visual drag widget in the top left corner of the rectangular widget. The expected result I want is that when I start dragging and dropping on a rectangular widget, a small square visual widget should be created right from the mouse pointer. Is there any workaround for this?? help

You should be able to change the pivot in your drag and drop operator to Mouse Down

@NightHawk45 When you drag and drop operator to Mouse Down, the visual drag widget will spawn in the upper left corner of the rectangular widget and follow it fixedly in the upper left corner of the mouse. Any other solution?

Oh I misread this. You should be able to adjust the offset to the screen space location of the mousedown event. This may help.

@NightHawk45 Thanks for finding the link. I also looked at that document, but it didn’t help much in solving the problem. That document is to create and drag a widget the same size as HP. When dragging a large rectangular widget, it should create a small square. The current problem is that a small square is created at the 0,0 position in a rectangular widget. My expected result is that the little square visual drag widget should be spawned right at the mouse pointer position when it is created. Is there any way to solve the problem?

I havent made a drag and drop widget in a while, so forgive me if Im wrong. Can you not just get the mouse down location from the My Geometry and Pointer Event nodes?

The two nodes at the bottom connect with the My Geometry and Pointer Event, then drag the absolute to local directly into the offset in your Create Widget function.