# How to lock mouse to a widget component?

**URL:** <https://forums.unrealengine.com/t/how-to-lock-mouse-to-a-widget-component/2720127>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [May 5, 2026, 4:59pm UTC](https://forums.unrealengine.com/t/how-to-lock-mouse-to-a-widget-component/2720127 "2026-05-05T16:59:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AllGamesSuck](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AllGamesSuck](https://forums.unrealengine.com/u/AllGamesSuck)\
**Post date:** [May 5, 2026, 4:59pm UTC](https://forums.unrealengine.com/t/how-to-lock-mouse-to-a-widget-component/2720127/1 "2026-05-05T16:59:17Z")

</div>

Hi, I have multiple widget components on screen at the same time, some closer to the first person player than others.

But only one at a time is supposed to be “active”. The problem is, when the mouse is hovering over some other widget component in the background, that widget reacts to the mouse.

How do I lock (clamp) the mouse within a widget component’s space? It feels like it should be a simple solution, I just can’t find the nodes for it.

Thanks.

---

<div class="post-metadata">

**Author:** ![tyconner](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tyconner/32/1203517_2.png) [@tyconner](https://forums.unrealengine.com/u/tyconner)\
**Post date:** [May 5, 2026, 5:52pm UTC](https://forums.unrealengine.com/t/how-to-lock-mouse-to-a-widget-component/2720127/2 "2026-05-05T17:52:54Z")

</div>

Can you set the “inactive” widgets to be non hit testable in the visibility settings?
