From 9e5975c9bbc245de8f495d1830449f7a63150018 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 8 Aug 2019 18:20:18 +0100 Subject: [PATCH] Making sure that mouse sharing options don't interfere with touch input. --- Source/ImGui/Private/Widgets/SImGuiWidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/ImGui/Private/Widgets/SImGuiWidget.cpp b/Source/ImGui/Private/Widgets/SImGuiWidget.cpp index 8596103..7119a33 100644 --- a/Source/ImGui/Private/Widgets/SImGuiWidget.cpp +++ b/Source/ImGui/Private/Widgets/SImGuiWidget.cpp @@ -393,6 +393,9 @@ void SImGuiWidget::UpdateInputState() auto* ContextPropxy = ModuleManager->GetContextManager().GetContextProxy(ContextIndex); const bool bEnableTransparentMouseInput = Properties.IsMouseInputShared() +#if PLATFORM_ANDROID || PLATFORM_IOS + && (FSlateApplication::Get().GetCursorPos() != FVector2D::ZeroVector) +#endif && !(ContextPropxy->IsMouseHoveringAnyWindow() || ContextPropxy->HasActiveItem()); if (bTransparentMouseInput != bEnableTransparentMouseInput) {