# On over events not working while dragging widget

**URL:** <https://forums.unrealengine.com/t/on-over-events-not-working-while-dragging-widget/1998534>\
**Category:** Blueprint\
**Tags:** drag-and-drop, unreal-engine, Widget, Blueprint, question\
**Created:** [August 30, 2024, 4:00pm UTC](https://forums.unrealengine.com/t/on-over-events-not-working-while-dragging-widget/1998534 "2024-08-30T16:00:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ghostly.xyz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ghostly.xyz](https://forums.unrealengine.com/u/Ghostly.xyz)\
**Post date:** [August 30, 2024, 4:00pm UTC](https://forums.unrealengine.com/t/on-over-events-not-working-while-dragging-widget/1998534/1 "2024-08-30T16:00:05Z")

</div>

Hi i’m trying to make a widget that when is dragget onto a specific floor actor it spawns another actor.

in the floor actor (tile) i put a event on begin over to get the position of the tile, i also set a boolean to tell the widget if i’m over it or not with the cursor.

in the widget blueprint i have the On Drag Canceled event that when the widget is released checks if the cursor is over the tile with the boolean.

The problem is that the boolean will be always false while dragging because the HoverBegin event doesn’t start while dragging. How can i make the event work while dragging? Thanks

Tile and Widget blueprints:

 ![UeForum](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/8/d/18d185800246f4deeb67cb64533354723c639081.jpeg)

---

<div class="post-metadata">

**Author:** ![dZh0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dZh0](https://forums.unrealengine.com/u/dZh0)\
**Post date:** [August 30, 2024, 9:28pm UTC](https://forums.unrealengine.com/t/on-over-events-not-working-while-dragging-widget/1998534/2 "2024-08-30T21:28:53Z")

</div>

Yes. `OnBeginCursorOver` will not fire while dragging. (unless you started dragging from that object I think)

Can you try using repeatedly `GetHitResultUnderCursorBy...` instead and tell us if it works?

---

<div class="post-metadata">

**Author:** ![Ghostly.xyz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ghostly.xyz](https://forums.unrealengine.com/u/Ghostly.xyz)\
**Post date:** [August 31, 2024, 1:54pm UTC](https://forums.unrealengine.com/t/on-over-events-not-working-while-dragging-widget/1998534/3 "2024-08-31T13:54:34Z")

</div>

Thank you for the reply. I tried but couldn’t think of a way to make it work, can you elaborate more? thanks

---

<div class="post-metadata">

**Author:** ![dZh0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dZh0](https://forums.unrealengine.com/u/dZh0)\
**Post date:** [August 31, 2024, 6:32pm UTC](https://forums.unrealengine.com/t/on-over-events-not-working-while-dragging-widget/1998534/4 "2024-08-31T18:32:06Z")

</div>

This simple graph will return the name of the object under your cursor regardless of any UI elements:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/e/2/1e22824260ba92ae0e485f2cc44aaf1fc48d35e8.png)

Of course you might not want to do it all the time, only when dragging or only when releasing. It is your call but this is how you can go around the fact that `OnBeginCursorOver` and get the object under your cursor.

---

<div class="post-metadata">

**Author:** ![Ghostly.xyz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ghostly.xyz](https://forums.unrealengine.com/u/Ghostly.xyz)\
**Post date:** [September 2, 2024, 3:39pm UTC](https://forums.unrealengine.com/t/on-over-events-not-working-while-dragging-widget/1998534/5 "2024-09-02T15:39:41Z")

</div>

Thank you, now is more clear, but for me this event too is not registered while dragging, am i doing something wrong? or is it like that?

---

<div class="post-metadata">

**Author:** ![dZh0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dZh0](https://forums.unrealengine.com/u/dZh0)\
**Post date:** [September 2, 2024, 5:14pm UTC](https://forums.unrealengine.com/t/on-over-events-not-working-while-dragging-widget/1998534/6 "2024-09-02T17:14:09Z")

</div>

I’m not sure what you mean by “…this event too is not registered while dragging…”. You are missing EventTick? Where are you trying to implement this?

Note in the top of the screenshot “BP\_MyPlayerController \> Event Graph” - this is blueprint is done in the player controller.

---

<div class="post-metadata">

**Author:** ![Ghostly.xyz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ghostly.xyz](https://forums.unrealengine.com/u/Ghostly.xyz)\
**Post date:** [September 5, 2024, 11:46am UTC](https://forums.unrealengine.com/t/on-over-events-not-working-while-dragging-widget/1998534/7 "2024-09-05T11:46:17Z")

</div>

i added the function to the event tick node of my player controller but the node was not active while dragging, i tried adding a print string to it to see if it printed while dragging and didn’t, so i guess it has the same problem. for now i found another solution that does not involve dragging…

---

<div class="post-metadata">

**Author:** ![dZh0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dZh0](https://forums.unrealengine.com/u/dZh0)\
**Post date:** [September 5, 2024, 12:14pm UTC](https://forums.unrealengine.com/t/on-over-events-not-working-while-dragging-widget/1998534/8 "2024-09-05T12:14:05Z")

</div>

I’m not sure how is this possible. Can you screenshot the tick of your player controller?
