# How do I stop my touch input going through my UMG?

**URL:** <https://forums.unrealengine.com/t/how-do-i-stop-my-touch-input-going-through-my-umg/489000>\
**Category:** UI\
**Tags:** Input, unreal-engine, touch, Blueprint, question, UMG\
**Created:** [September 20, 2021, 1:15pm UTC](https://forums.unrealengine.com/t/how-do-i-stop-my-touch-input-going-through-my-umg/489000 "2021-09-20T13:15:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kagamusha](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kagamusha](https://forums.unrealengine.com/u/Kagamusha)\
**Post date:** [September 20, 2021, 1:15pm UTC](https://forums.unrealengine.com/t/how-do-i-stop-my-touch-input-going-through-my-umg/489000/1 "2021-09-20T13:15:45Z")

</div>

I have a touch input system that can rotate a camera by dragging your finger left or right across the screen.

There is also a UMG menu with a slider, however when I drag the slider my touch input drags the camera as well (even with other UMG layers behind the slider).

Is there a way to only affect the slider and not both the slider and the camera?

---

<div class="post-metadata">

**Author:** ![Kehel18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kehel18](https://forums.unrealengine.com/u/Kehel18)\
**Post date:** [September 21, 2021, 4:07pm UTC](https://forums.unrealengine.com/t/how-do-i-stop-my-touch-input-going-through-my-umg/489000/2 "2021-09-21T16:07:26Z")

</div>

Hello! It depends on what nodes/code are used to rotate camera. Can you picture them?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 21, 2021, 6:14pm UTC](https://forums.unrealengine.com/t/how-do-i-stop-my-touch-input-going-through-my-umg/489000/3 "2021-09-21T18:14:43Z")

</div>

It might be as easy as passing `Handled` in the widget:

 ![349128-screenshot-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/c/5/4c56195c12f166a1baf3ac37489a647d7db3b4a4.png)

But it may not be that easy, too. Depending on what else is going on - mainly how element hierarchy is using Visibility.

---

<div class="post-metadata">

**Author:** ![Kagamusha](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kagamusha](https://forums.unrealengine.com/u/Kagamusha)\
**Post date:** [September 22, 2021, 9:37am UTC](https://forums.unrealengine.com/t/how-do-i-stop-my-touch-input-going-through-my-umg/489000/4 "2021-09-22T09:37:39Z")

</div>

Would it be okay to expand on this? Would I make this a function like shown above and attach it after the touch event?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 22, 2021, 12:22pm UTC](https://forums.unrealengine.com/t/how-do-i-stop-my-touch-input-going-through-my-umg/489000/5 "2021-09-22T12:22:26Z")

</div>

Override it in the widget that hosts the slider. In the widget you’d like to consume the touch:

 ![349172-screenshot-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/8/8c85deb8be72f7eeb9bb107941321f779413fa21.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 22, 2021, 12:26pm UTC](https://forums.unrealengine.com/t/how-do-i-stop-my-touch-input-going-through-my-umg/489000/6 "2021-09-22T12:26:40Z")

</div>

> I have a touch input system that can  
> rotate a camera by dragging your  
> finger left or right across the  
> screen.

Assuming this is done in the player controller, passing handled _should_ prevent the controller from receiving input.

---

<div class="post-metadata">

**Author:** ![KainikR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kainikr/32/952091_2.png) [@KainikR](https://forums.unrealengine.com/u/KainikR)\
**Post date:** [March 11, 2024, 2:35pm UTC](https://forums.unrealengine.com/t/how-do-i-stop-my-touch-input-going-through-my-umg/489000/7 "2024-03-11T14:35:02Z")

</div>

Our team was having an issue where touch would bubble down to the game when pressing on UI and this was the only post we could find that actually fixed it. Thank you!
