Making sure that mouse sharing options don't interfere with touch input.

This commit is contained in:
Sebastian 2019-08-08 18:20:18 +01:00
parent 95d27334fe
commit 9e5975c9bb

View File

@ -393,6 +393,9 @@ void SImGuiWidget::UpdateInputState()
auto* ContextPropxy = ModuleManager->GetContextManager().GetContextProxy(ContextIndex); auto* ContextPropxy = ModuleManager->GetContextManager().GetContextProxy(ContextIndex);
const bool bEnableTransparentMouseInput = Properties.IsMouseInputShared() const bool bEnableTransparentMouseInput = Properties.IsMouseInputShared()
#if PLATFORM_ANDROID || PLATFORM_IOS
&& (FSlateApplication::Get().GetCursorPos() != FVector2D::ZeroVector)
#endif
&& !(ContextPropxy->IsMouseHoveringAnyWindow() || ContextPropxy->HasActiveItem()); && !(ContextPropxy->IsMouseHoveringAnyWindow() || ContextPropxy->HasActiveItem());
if (bTransparentMouseInput != bEnableTransparentMouseInput) if (bTransparentMouseInput != bEnableTransparentMouseInput)
{ {