# \[UMG\] OnMouseLeave event fired wrongly when using a SpinBox

**URL:** <https://forums.unrealengine.com/t/umg-onmouseleave-event-fired-wrongly-when-using-a-spinbox/314665>\
**Category:** UI\
**Tags:** event-firing, unreal-engine, bug-report, Blueprint, question, UMG\
**Created:** [April 11, 2015, 10:26am UTC](https://forums.unrealengine.com/t/umg-onmouseleave-event-fired-wrongly-when-using-a-spinbox/314665 "2015-04-11T10:26:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cultrarius](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cultrarius](https://forums.unrealengine.com/u/Cultrarius)\
**Post date:** [April 11, 2015, 10:26am UTC](https://forums.unrealengine.com/t/umg-onmouseleave-event-fired-wrongly-when-using-a-spinbox/314665/1 "2015-04-11T10:26:17Z")

</div>

I created a custom widget that is basically just a NamedSlot with the OnMouseEnter and OnMouseLeave events defined in the event graph. This works fine and the events fire correctly when used in my UI.

However, when adding a SpinBox to the custom widget (see screenshot how it looks like), the events do not fire correctly while dragging the spinbox. Basically, everytime the mouse would leave the widget without dragging, the event is fired. But the mouse never moves, as it is always on the slider.

(I am currently using version 4.7.3)

![38382-slider.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/c/6/1c67a97ffc05f62a247815f99f329d080ffaca7d.jpeg)

---

<div class="post-metadata">

**Author:** ![Cultrarius](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cultrarius](https://forums.unrealengine.com/u/Cultrarius)\
**Post date:** [April 13, 2015, 12:14pm UTC](https://forums.unrealengine.com/t/umg-onmouseleave-event-fired-wrongly-when-using-a-spinbox/314665/2 "2015-04-13T12:14:47Z")

</div>

I found a workaround for this problem, but it feels more like a hack to me than a real solution.

 ![38545-workaround.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/3/9/839ca0d575ab0cfaa2ba33bc8f7f895b08dff0ea.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [April 13, 2015, 2:53pm UTC](https://forums.unrealengine.com/t/umg-onmouseleave-event-fired-wrongly-when-using-a-spinbox/314665/3 "2015-04-13T14:53:09Z")

</div>

Hello Cultrarius,

I was able to reproduce this issue on our end. I have written up a report ( UE-13719) and I have submitted it to the developers for further consideration. I will provide updates with any pertinent information as it becomes available. Thank you for your information and time.

Make it a great day
