# How Can I Detect a Click Near Corner of Widget

**URL:** <https://forums.unrealengine.com/t/how-can-i-detect-a-click-near-corner-of-widget/1356428>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, UE5, Blueprint, question, UMG\
**Created:** [November 1, 2023, 7:22pm UTC](https://forums.unrealengine.com/t/how-can-i-detect-a-click-near-corner-of-widget/1356428 "2023-11-01T19:22:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NoGoodIDsLeft](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nogoodidsleft/32/770353_2.png) [@NoGoodIDsLeft](https://forums.unrealengine.com/u/NoGoodIDsLeft)\
**Post date:** [November 1, 2023, 7:22pm UTC](https://forums.unrealengine.com/t/how-can-i-detect-a-click-near-corner-of-widget/1356428/1 "2023-11-01T19:22:01Z")

</div>

I’m trying to make a base class for resizable widgets. I want to detect clicks near corners of the widget. I’m using this to detect corner clicks:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/4/4/744e96eac6d9f9e18d81d47303b5434ab38980a5.png)

If a corner click is detected, I start a timer function to resize the widget using this function:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/3/e/53e564bc23ce60d91db7fb5f490f4fad011088c2.png)

It works, once. After a resize, I can no longer detect corner clicks.

I’ve probably made some simple mistake, or used the wrong size, but I can’t figure out what’s wrong.
