# "On Mouse Button Double Click" wont fire

**URL:** <https://forums.unrealengine.com/t/on-mouse-button-double-click-wont-fire/401560>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [August 12, 2017, 10:24am UTC](https://forums.unrealengine.com/t/on-mouse-button-double-click-wont-fire/401560 "2017-08-12T10:24:30Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Oaken](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@David\_Oaken](https://forums.unrealengine.com/u/David_Oaken)\
**Post date:** [August 12, 2017, 10:24am UTC](https://forums.unrealengine.com/t/on-mouse-button-double-click-wont-fire/401560/1 "2017-08-12T10:24:30Z")

</div>

I’ve been following UnrealGaimeDev’s series to make my inventory system on youtube, Im on this video:  
https://www.youtube.com/embed/S5gIELRnS5E?feature=oembed&wmode=opaque&list=PLmKKTERcjTPKEPl0nk48Tpmj-iWmzqo_Q

Everything up to now is working exactly as it should be however in this most recent video i cannot get the OnMouseButtonDoubleClick to fire.

This is my blue print version of what he made:

 ![204210-untitled-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/8/8e8d9bfd3618bdffee53241b4b920927983e4edd.jpeg)

I’ve tried disconnecting everything but the “is mouse button down” from the branch and still nothing.  
If i preview the blue print while in play and double click in game the active route (sorry dont know its proper name) doesnt appear at all)  
I have tried decreasing the required speed of the double click in the project settings and have my player controller set to: Show mouse cursor: True, Enable Click events: True, Enable Mouse Over events: True

Any help/pointers would be appreciated.

---

<div class="post-metadata">

**Author:** ![umbrelluck](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@umbrelluck](https://forums.unrealengine.com/u/umbrelluck)\
**Post date:** [August 14, 2017, 9:00am UTC](https://forums.unrealengine.com/t/on-mouse-button-double-click-wont-fire/401560/2 "2017-08-14T09:00:17Z")

</div>

It seems like we were watching the same inventory system tutorial) And yes, for me it also dont work

---

<div class="post-metadata">

**Author:** ![umbrelluck](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@umbrelluck](https://forums.unrealengine.com/u/umbrelluck)\
**Post date:** [August 14, 2017, 9:03am UTC](https://forums.unrealengine.com/t/on-mouse-button-double-click-wont-fire/401560/3 "2017-08-14T09:03:31Z")

</div>

and to tell you the truth, problem is not only here, problem is everywhere what is connected to pressing left mouse button. The interesting thing is that everything works correctly, when the slot is empty. What I mean is every event fires correctly. But when the slot is filled, then problems arise.

---

<div class="post-metadata">

**Author:** ![Ninjin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ninjin](https://forums.unrealengine.com/u/Ninjin)\
**Post date:** [August 14, 2017, 10:42am UTC](https://forums.unrealengine.com/t/on-mouse-button-double-click-wont-fire/401560/4 "2017-08-14T10:42:35Z")

</div>

Well, if “On Mouse Button Double Click” won’t even get fired, you are showing us the wrong blueprint. Show us the one where you call the function. \<3

---

<div class="post-metadata">

**Author:** ![umbrelluck](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@umbrelluck](https://forums.unrealengine.com/u/umbrelluck)\
**Post date:** [August 14, 2017, 10:48am UTC](https://forums.unrealengine.com/t/on-mouse-button-double-click-wont-fire/401560/5 "2017-08-14T10:48:24Z")

</div>

No everything right. We both overrided standart functions that fire automatically when user presses mouse button. The thing is that when right mouse button is used everything works and left mouse button worls only when the slot is empty.

---

<div class="post-metadata">

**Author:** ![David\_Oaken](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@David\_Oaken](https://forums.unrealengine.com/u/David_Oaken)\
**Post date:** [August 14, 2017, 11:48am UTC](https://forums.unrealengine.com/t/on-mouse-button-double-click-wont-fire/401560/6 "2017-08-14T11:48:31Z")

</div>

Not sure what you mean there Ninjin, Its an override function, it **should** fire each time the button is double clicked. Did i miss something?

---

<div class="post-metadata">

**Author:** ![umbrelluck](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@umbrelluck](https://forums.unrealengine.com/u/umbrelluck)\
**Post date:** [August 14, 2017, 11:52am UTC](https://forums.unrealengine.com/t/on-mouse-button-double-click-wont-fire/401560/7 "2017-08-14T11:52:18Z")

</div>

It should but it doesnt fire on the left mouse at all

---

<div class="post-metadata">

**Author:** ![Ninjin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ninjin](https://forums.unrealengine.com/u/Ninjin)\
**Post date:** [August 14, 2017, 1:24pm UTC](https://forums.unrealengine.com/t/on-mouse-button-double-click-wont-fire/401560/8 "2017-08-14T13:24:00Z")

</div>

Well, I’m not a wizard and you can’t expect me or others to watch the whole tutorial and re-create everything, so adding what function you overwrote and where you call this function would be great to know.

---

<div class="post-metadata">

**Author:** ![David\_Oaken](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@David\_Oaken](https://forums.unrealengine.com/u/David_Oaken)\
**Post date:** [August 14, 2017, 3:01pm UTC](https://forums.unrealengine.com/t/on-mouse-button-double-click-wont-fire/401560/9 "2017-08-14T15:01:23Z")

</div>

You dont need to watch the whole thing:

Create a new project. (im using top down template for this example)  
Create a widget and place a button on the canvas  
override the function “OnMouseButtonDoubleClick”  
drag off the OnMouseButtonDoubleClick and place a print string,  
connect to return node and place a “handled” on the return value  
save, compile, hit play

double left click, nothing  
double right click or double middle mouse click and you WILL get the text.

It seems to be only on the left mouse button that there is an issue.

---

<div class="post-metadata">

**Author:** ![David\_Oaken](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@David\_Oaken](https://forums.unrealengine.com/u/David_Oaken)\
**Post date:** [August 16, 2017, 9:24am UTC](https://forums.unrealengine.com/t/on-mouse-button-double-click-wont-fire/401560/10 "2017-08-16T09:24:47Z")

</div>

I’ve fixed this with the help of some none on the forum. It involves a little tom foolery but it works

If you make the the widget like this instead  
[Overlay]  
. [Border]  
. [Image]  
. [Text]

The do everything as you would have before but replace the button with the border and the set style with set brush  
Then override the functions “one mouse enter” and “on mouse leave” and just set the brush in those to (OME) hovered brush and (OML) default brush it functions in exactly the same way as the button does.

---

<div class="post-metadata">

**Author:** ![Skylonxe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skylonxe](https://forums.unrealengine.com/u/Skylonxe)\
**Post date:** [August 16, 2017, 3:26pm UTC](https://forums.unrealengine.com/t/on-mouse-button-double-click-wont-fire/401560/11 "2017-08-16T15:26:35Z")

</div>

This is workaround suitable only for your project. Not everybody can replace button with different element. Broken On Mouse Button event for left mouse click is 4.17 bug and hopefully it will be fixed soon.

---

<div class="post-metadata">

**Author:** ![Flash7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Flash7](https://forums.unrealengine.com/u/Flash7)\
**Post date:** [September 29, 2017, 4:02pm UTC](https://forums.unrealengine.com/t/on-mouse-button-double-click-wont-fire/401560/12 "2017-09-29T16:02:58Z")

</div>

Instead of OnMouseButtonDown use OnPreviewMouseButtonDown. It works on buttons.

 ![215174-2017-09-29-11-59-22-d1m1arena-unreal-editor.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/6/2/06263a415ab1626eb2a08203c4f4f7a93679091b.png)

---

<div class="post-metadata">

**Author:** ![umbrelluck](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@umbrelluck](https://forums.unrealengine.com/u/umbrelluck)\
**Post date:** [September 29, 2017, 4:57pm UTC](https://forums.unrealengine.com/t/on-mouse-button-double-click-wont-fire/401560/13 "2017-09-29T16:57:48Z")

</div>

Thanks this works!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6089e6b6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6089e6b6](https://forums.unrealengine.com/u/anonymous_user_6089e6b6)\
**Post date:** [September 29, 2017, 8:17pm UTC](https://forums.unrealengine.com/t/on-mouse-button-double-click-wont-fire/401560/14 "2017-09-29T20:17:13Z")

</div>

Another solution for this project  
Duplicate onmousebuttondoubleclick  
Run Onclicked(slotbutton) - Make your own doubleclickfunk as in throw widget on ‘-’ and ‘+’ buttons(incr,delay 0.3, click count etc…) Not so good but easy and fast  
ps Anyone knows is it really bug?

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/0/5/b05127981bd02500294888799a8efac8d9016ca3.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6089e6b6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6089e6b6](https://forums.unrealengine.com/u/anonymous_user_6089e6b6)\
**Post date:** [September 29, 2017, 10:31pm UTC](https://forums.unrealengine.com/t/on-mouse-button-double-click-wont-fire/401560/15 "2017-09-29T22:31:22Z")

</div>

Finally got the same problem with on mouse button click, only lmb doest hit event

Also, while debugging it crashes in 50% times using checkpoint on ‘onmousebuttondoubleclick’ etc xD

---

<div class="post-metadata">

**Author:** ![umbrelluck](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@umbrelluck](https://forums.unrealengine.com/u/umbrelluck)\
**Post date:** [September 30, 2017, 2:09pm UTC](https://forums.unrealengine.com/t/on-mouse-button-double-click-wont-fire/401560/16 "2017-09-30T14:09:19Z")

</div>

ok, thanks

---

<div class="post-metadata">

**Author:** ![Kromtak](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kromtak](https://forums.unrealengine.com/u/Kromtak)\
**Post date:** [November 30, 2017, 2:51pm UTC](https://forums.unrealengine.com/t/on-mouse-button-double-click-wont-fire/401560/17 "2017-11-30T14:51:43Z")

</div>

Change in behavior in UE4 by design. Reference other threads here:

[https://forums.unrealengine.com/unreal-engine/feedback-for-epic/1348178-please-include-drag-drop-fix-in-4-17-2](https://forums.unrealengine.com/unreal-engine/feedback-for-epic/1348178-please-include-drag-drop-fix-in-4-17-2)

> **[On Mouse Button Double Click Bug](https://forums.unrealengine.com/questions/700718/on-mouse-button-double-click-bug.html)**
>
> When you try and override the on mouse double click event on a widget button and use the left mouse button to trigger the logic within that event, during play double left clicking on the widget button does nothing. However if another button is used...

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE-49100)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

---

<div class="post-metadata">

**Author:** ![JavierRamello](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JavierRamello](https://forums.unrealengine.com/u/JavierRamello)\
**Post date:** [December 17, 2017, 1:15pm UTC](https://forums.unrealengine.com/t/on-mouse-button-double-click-wont-fire/401560/18 "2017-12-17T13:15:03Z")

</div>

OnMouseButtonDoubleClick is still not being fired with umg buttons in 4.18. Can someone confirm this please?  
Cheers,  
J

---

<div class="post-metadata">

**Author:** ![StuntThumper88](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@StuntThumper88](https://forums.unrealengine.com/u/StuntThumper88)\
**Post date:** [January 20, 2019, 8:30pm UTC](https://forums.unrealengine.com/t/on-mouse-button-double-click-wont-fire/401560/19 "2019-01-20T20:30:04Z")

</div>

This isn’t a solution for double click though?

---

<div class="post-metadata">

**Author:** ![Koulounil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Koulounil](https://forums.unrealengine.com/u/Koulounil)\
**Post date:** [December 21, 2019, 6:50pm UTC](https://forums.unrealengine.com/t/on-mouse-button-double-click-wont-fire/401560/20 "2019-12-21T18:50:25Z")

</div>

Hi guys !

Is that me or does this problem stil occurs on 4.22 ?

I can’t manage to get my picture widget’s OnMouseDoubleClick event to fire when double clicking on left button, while it works with right button and with mouse up/down events :

 ![294276-bug-double-click.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/0/6f0d8eae496747d0805172f4068bb66a3d247d84.jpeg)

I gues, I would manage to make some workaround, but it’s never as safe as using the native function.

[Next page](https://forums.unrealengine.com/t/on-mouse-button-double-click-wont-fire/401560.md?page=2)
