# How To Fix Double Touch on windows touch

**URL:** <https://forums.unrealengine.com/t/how-to-fix-double-touch-on-windows-touch/642689>\
**Category:** UI\
**Tags:** unreal-engine, slate, UI, UE4-26, question\
**Created:** [September 6, 2022, 12:22pm UTC](https://forums.unrealengine.com/t/how-to-fix-double-touch-on-windows-touch/642689 "2022-09-06T12:22:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![JeremyBrendli](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JeremyBrendli](https://forums.unrealengine.com/u/JeremyBrendli)\
**Post date:** [September 6, 2022, 12:22pm UTC](https://forums.unrealengine.com/t/how-to-fix-double-touch-on-windows-touch/642689/1 "2022-09-06T12:22:02Z")

</div>

Hello,  
I’ve been stuck on this annoying bug in unreal 4.26 on my windows machine where when I try to click a button or anything that has a click function or does an action when pressed,(button, combo box, expandable area, checkbox…) they all get pressed twice the first time I select them when using my touch screen on my laptop. then when I select them a second time it only clicks it the expected one click. I’ve found a work around that requires me to edit the source code [https://github.com/EpicGames/UnrealEngine/pull/3448](https://github.com/EpicGames/UnrealEngine/pull/3448) which is possible for me to do I just wanted to see if there were any more obvious fixes to my problem.

thanks in advance.

---

<div class="post-metadata">

**Author:** ![Virtuality](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/virtuality/32/1140891_2.png) [@Virtuality](https://forums.unrealengine.com/u/Virtuality)\
**Post date:** [April 13, 2023, 6:42am UTC](https://forums.unrealengine.com/t/how-to-fix-double-touch-on-windows-touch/642689/2 "2023-04-13T06:42:24Z")

</div>

Did you ever find a way around this? I’m stuck with the same issue in UE5.1.1 ☹

---

<div class="post-metadata">

**Author:** ![JeremyBrendli](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JeremyBrendli](https://forums.unrealengine.com/u/JeremyBrendli)\
**Post date:** [April 25, 2023, 5:01pm UTC](https://forums.unrealengine.com/t/how-to-fix-double-touch-on-windows-touch/642689/3 "2023-04-25T17:01:36Z")

</div>

No Sorry. The only thing I found was the link to github where you’ll need to download the source code. I’ll update this if I find anything.

---

<div class="post-metadata">

**Author:** ![Virtuality](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/virtuality/32/1140891_2.png) [@Virtuality](https://forums.unrealengine.com/u/Virtuality)\
**Post date:** [April 28, 2023, 1:39pm UTC](https://forums.unrealengine.com/t/how-to-fix-double-touch-on-windows-touch/642689/4 "2023-04-28T13:39:10Z")

</div>

> [@Virtuality](#):
>
> y around this? I’m stuck with the same issue in UE5.1.1 ☹

Not so much a solution as a decent workaround. Created a macrolibrary (class: UMG.Widget if you want to use it in Widgets, class: Actor elsewhere) with a macro called “InputFilter”, which I’m adding as the first node after every touch event. This avoids any logic being called \>1 in the same tick and solves the issue.

Be careful not to add this to logic that should run \>1 per tick (like multiple fingers touching at once)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/a/3/4a3b744e1884bc3decb29cdf29d0fac416a1091a.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/a/b/8aba5a78efa06b0186d679311ddab93007f0f137.png)

---

<div class="post-metadata">

**Author:** ![JeremyBrendli](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JeremyBrendli](https://forums.unrealengine.com/u/JeremyBrendli)\
**Post date:** [April 28, 2023, 7:01pm UTC](https://forums.unrealengine.com/t/how-to-fix-double-touch-on-windows-touch/642689/5 "2023-04-28T19:01:15Z")

</div>

Thanks I’ll try this out.

---

<div class="post-metadata">

**Author:** ![zombie0f0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zombie0f0](https://forums.unrealengine.com/u/zombie0f0)\
**Post date:** [June 16, 2023, 4:07am UTC](https://forums.unrealengine.com/t/how-to-fix-double-touch-on-windows-touch/642689/6 "2023-06-16T04:07:36Z")

</div>

Hello,This Console Variables worked perfect for me.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/8/5/885bf39b36e0307ec3d3f79109f85d6c1ce6b531.png)

---

<div class="post-metadata">

**Author:** ![JeremyBrendli](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JeremyBrendli](https://forums.unrealengine.com/u/JeremyBrendli)\
**Post date:** [December 15, 2023, 2:49pm UTC](https://forums.unrealengine.com/t/how-to-fix-double-touch-on-windows-touch/642689/7 "2023-12-15T14:49:35Z")

</div>

Sorry that i’m bringing this back to life but i’m looking at this again and feeling like you gave me an answer but I have no idea what to do with this information. Where does this go? Is this a command line variable that I need to execute before launching the build? Is this something I put in the project settings?

---

<div class="post-metadata">

**Author:** ![JeremyBrendli](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JeremyBrendli](https://forums.unrealengine.com/u/JeremyBrendli)\
**Post date:** [April 3, 2024, 7:12pm UTC](https://forums.unrealengine.com/t/how-to-fix-double-touch-on-windows-touch/642689/8 "2024-04-03T19:12:34Z")

</div>

So I found the answer you need.

[MobileSlateUI]  
bTouchFallbackToMouse=false

This will go inside of the DefaultEngine.ini file that is located in /Config/DefaultEngine.ini  
But this seems to only work for me when I am either in a packaged build or a standalone game not sure where I need to put it yet so the games run in the editor also work.

Edit:  
This sort of fixes this issue. I have found that some things stop working because of how the input system works in unreal. What this setting does is makes it so unreal engine no longer calls the mouse versions of the input after the input returns FReply::Unhandled. That causes some issues in places like buttons inside of scroll boxes not being able to scroll anymore due to the SViewport capturing the mouse cursor instead of the button getting the mouse input. So while this may fix your issue where touch on a button gets called twice it may introduce other issues to your code.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [May 3, 2024, 7:12pm UTC](https://forums.unrealengine.com/t/how-to-fix-double-touch-on-windows-touch/642689/9 "2024-05-03T19:12:59Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
