# Why LeftMouseButton can't trigger OnMouseButtonDown ??

**URL:** <https://forums.unrealengine.com/t/why-leftmousebutton-cant-trigger-onmousebuttondown/149361>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [August 18, 2020, 1:47am UTC](https://forums.unrealengine.com/t/why-leftmousebutton-cant-trigger-onmousebuttondown/149361 "2020-08-18T01:47:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_cf697012](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cf697012](https://forums.unrealengine.com/u/anonymous_user_cf697012)\
**Post date:** [August 18, 2020, 1:47am UTC](https://forums.unrealengine.com/t/why-leftmousebutton-cant-trigger-onmousebuttondown/149361/1 "2020-08-18T01:47:40Z")

</div>

![1.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/2/d252f005bed180a9ec19ae5656916e684639e598.png)

it will only show “right” ,and with no refection if i click LeftMouseButton…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cf697012](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cf697012](https://forums.unrealengine.com/u/anonymous_user_cf697012)\
**Post date:** [August 18, 2020, 2:45am UTC](https://forums.unrealengine.com/t/why-leftmousebutton-cant-trigger-onmousebuttondown/149361/2 "2020-08-18T02:45:31Z")

</div>

this is a button ,and if i use image it will trigger LeftMouseButton,so,whats wrong with button??

---

<div class="post-metadata">

**Author:** ![Stormrage256](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/stormrage256/32/1008648_2.png) [@Stormrage256](https://forums.unrealengine.com/u/Stormrage256)\
**Post date:** [August 18, 2020, 11:38am UTC](https://forums.unrealengine.com/t/why-leftmousebutton-cant-trigger-onmousebuttondown/149361/3 "2020-08-18T11:38:28Z")

</div>

I believe you’re facing the same [issue](https://issues.unrealengine.com/issue/UE-49100)that pops up when we try to drag a button with left mouse button. Overriding the “On Preview Mouse Button Down” function instead of On Mouse Button Down, fixed the problem for me.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cf697012](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cf697012](https://forums.unrealengine.com/u/anonymous_user_cf697012)\
**Post date:** [August 19, 2020, 12:09am UTC](https://forums.unrealengine.com/t/why-leftmousebutton-cant-trigger-onmousebuttondown/149361/4 "2020-08-19T00:09:18Z")

</div>

> [@Stormrage256](#):
>
> I believe you’re facing the same [issue](https://issues.unrealengine.com/issue/UE-49100)that pops up when we try to drag a button with left mouse button. Overriding the “On Preview Mouse Button Down” function instead of On Mouse Button Down, fixed the problem for me.

oh!!! thank you sooooooo much !!! this problem spends me more than 5 hours for googling !!! really thank !!

---

<div class="post-metadata">

**Author:** ![Spesful](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spesful](https://forums.unrealengine.com/u/Spesful)\
**Post date:** [November 30, 2024, 8:10pm UTC](https://forums.unrealengine.com/t/why-leftmousebutton-cant-trigger-onmousebuttondown/149361/5 "2024-11-30T20:10:03Z")

</div>

For anyone else who stumbles upon this problem, using the OnPreviewMouseButtonDown function is slightly discouraged, as it can make it harder for you or your team to predict or comprehend the behavior of the UI later on.

The problem usually happens when you have an interfering widget, in most cases it’s a button. Depending on your use case, you could either disable it using `YourButton->SetIsEnabled(false);`, or stop it from consuming the mouse input.
