# \[Bug\] UMG Widget, "OnPressed" together with Button Disable consumes Input

**URL:** <https://forums.unrealengine.com/t/bug-umg-widget-onpressed-together-with-button-disable-consumes-input/329661>\
**Category:** UI\
**Tags:** button, Mobile, unreal-engine, Blueprint, question, UMG\
**Created:** [August 23, 2015, 7:13pm UTC](https://forums.unrealengine.com/t/bug-umg-widget-onpressed-together-with-button-disable-consumes-input/329661 "2015-08-23T19:13:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [August 23, 2015, 7:13pm UTC](https://forums.unrealengine.com/t/bug-umg-widget-onpressed-together-with-button-disable-consumes-input/329661/1 "2015-08-23T19:13:01Z")

</div>

Hey there,

i hope it is possible for you to recreate this. I don’t have the time right now to test this in a fresh Project.

I’m using a Mobile Blank Project in which i’ve set Mouse clicks to simulate touch events.

I created a widget that with a button. This button gets the “OnPressed” event. It does some things and eventually also disables itself (So it calls Set Is Enabled on itself). After this, i can’t click anymore. Neither on buttons, scrollboxes etc in this widget, nor on other widgets or on actors in the scene. Mouse over still works though.

If i replace this OnPressed with OnClicked it works again. Seems like “OnPressed” doesn’t release the Input when it is disabled directly in the Event call.

PS: Someone on Slack commented this and i found this a pretty good explanation of what is going on:

Quote from at SlackChat:

> Ah, so OnPressed presumably fires as soon as the button is pressed, whereas OnClicked fires after it’s been released.  
> I’d say that the widget captures the  
> mouse in it’s internal OnPressed  
> handler, and then being disabled  
> prevents it from receiving the  
> released signal, so it never releases  
> capture.

---

<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:** [August 24, 2015, 6:21pm UTC](https://forums.unrealengine.com/t/bug-umg-widget-onpressed-together-with-button-disable-consumes-input/329661/2 "2015-08-24T18:21:12Z")

</div>

Hello ,

This is a known issue (UE-20311) and it has been reported and sent to the developer for further consideration. I will be sure to bump up the community interest for this issue. Thank you for your time and information.

Make it a great day

---

<div class="post-metadata">

**Author:** ![Narg](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/narg/32/870597_2.png) [@Narg](https://forums.unrealengine.com/u/Narg)\
**Post date:** [August 14, 2016, 6:19pm UTC](https://forums.unrealengine.com/t/bug-umg-widget-onpressed-together-with-button-disable-consumes-input/329661/3 "2016-08-14T18:19:50Z")

</div>

Just bumping to say that this is still an issue in 4.12.5.

---

<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:** [August 15, 2016, 1:07pm UTC](https://forums.unrealengine.com/t/bug-umg-widget-onpressed-together-with-button-disable-consumes-input/329661/4 "2016-08-15T13:07:10Z")

</div>

Hello Narg,

I have provided a link to the public tracker. Please feel free to visit the link provided for future updates.

Link: [Unreal Engine Issues and Bug Tracker (UE-20311)](https://issues.unrealengine.com/issue/UE-20311)

Make it a great day
