# Drag and Drop Operation Drag Visual Widget Spawn Left Top1

**URL:** <https://forums.unrealengine.com/t/drag-and-drop-operation-drag-visual-widget-spawn-left-top1/630697>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [August 18, 2022, 2:47am UTC](https://forums.unrealengine.com/t/drag-and-drop-operation-drag-visual-widget-spawn-left-top1/630697 "2022-08-18T02:47:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![781609](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@781609](https://forums.unrealengine.com/u/781609)\
**Post date:** [August 18, 2022, 2:47am UTC](https://forums.unrealengine.com/t/drag-and-drop-operation-drag-visual-widget-spawn-left-top1/630697/1 "2022-08-18T02:47:56Z")

</div>

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

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/7/cc777066082e13c0537cd8c3367c6507f2232696.png)

---

<div class="post-metadata">

**Author:** ![NightHawk45](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NightHawk45](https://forums.unrealengine.com/u/NightHawk45)\
**Post date:** [August 18, 2022, 2:49am UTC](https://forums.unrealengine.com/t/drag-and-drop-operation-drag-visual-widget-spawn-left-top1/630697/2 "2022-08-18T02:49:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![781609](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@781609](https://forums.unrealengine.com/u/781609)\
**Post date:** [August 18, 2022, 2:51am UTC](https://forums.unrealengine.com/t/drag-and-drop-operation-drag-visual-widget-spawn-left-top1/630697/3 "2022-08-18T02:51:13Z")

</div>

@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?

---

<div class="post-metadata">

**Author:** ![NightHawk45](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NightHawk45](https://forums.unrealengine.com/u/NightHawk45)\
**Post date:** [August 18, 2022, 2:56am UTC](https://forums.unrealengine.com/t/drag-and-drop-operation-drag-visual-widget-spawn-left-top1/630697/4 "2022-08-18T02:56:53Z")

</div>

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

> **[Creating Drag and Drop UI](https://docs.unrealengine.com/4.26/en-US/InteractiveExperiences/UMG/HowTo/DragAndDrop/)**
>
> Shows how you can create drag and droppable UI widgets with UMG.

---

<div class="post-metadata">

**Author:** ![781609](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@781609](https://forums.unrealengine.com/u/781609)\
**Post date:** [August 18, 2022, 3:06am UTC](https://forums.unrealengine.com/t/drag-and-drop-operation-drag-visual-widget-spawn-left-top1/630697/5 "2022-08-18T03:06:48Z")

</div>

@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?

---

<div class="post-metadata">

**Author:** ![NightHawk45](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NightHawk45](https://forums.unrealengine.com/u/NightHawk45)\
**Post date:** [August 18, 2022, 3:14am UTC](https://forums.unrealengine.com/t/drag-and-drop-operation-drag-visual-widget-spawn-left-top1/630697/6 "2022-08-18T03:14:19Z")

</div>

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?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/c/5/fc5db75d24811a4bd0c545ca96406efa88f66ba3.jpeg)

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.

---

<div class="post-metadata">

**Author:** ![c0ntrarian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@c0ntrarian](https://forums.unrealengine.com/u/c0ntrarian)\
**Post date:** [November 30, 2024, 10:32pm UTC](https://forums.unrealengine.com/t/drag-and-drop-operation-drag-visual-widget-spawn-left-top1/630697/7 "2024-11-30T22:32:00Z")

</div>

[For anyone else having issues with this: this could be an issue with padding. Set Padding to Default on EVERYTHING – Border, Image, any Size/Scale boxes, etc. Do this on both dragged and original widgets. Took me a few hours to figure out it was an issue with not the code, but the actual widget parameters.](https://forums.unrealengine.com/t/widget-drag-and-drop-is-always-to-the-left-corner/760860/9)

Also had an issue with this. It was the padding. Check my response here.
