From 1845fb0c28eb1ce6f48f93a367daf9d1cb104295 Mon Sep 17 00:00:00 2001 From: Martin Zikmund Date: Mon, 27 Jun 2022 16:20:52 +0200 Subject: [PATCH] chore: Whoops, how did that happen --- src/Uno.UI.Runtime.Skia.Wpf/WpfHost.cs | 4 ++-- src/Uno.UI.XamlHost.Skia.Wpf/UnoXamlHostBase.host.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Uno.UI.Runtime.Skia.Wpf/WpfHost.cs b/src/Uno.UI.Runtime.Skia.Wpf/WpfHost.cs index f00a12eb8952..e01361a809b4 100644 --- a/src/Uno.UI.Runtime.Skia.Wpf/WpfHost.cs +++ b/src/Uno.UI.Runtime.Skia.Wpf/WpfHost.cs @@ -336,9 +336,9 @@ private void InvalidateOverlays() } } - void IWpfHost.ReleasePointerCapture() => CaptureMouse(); //TODO: This should capture the correct type of pointer (stylus/mouse/touch) #8978[capture] + void IWpfHost.ReleasePointerCapture() => ReleaseMouseCapture(); //TODO: This should capture the correct type of pointer (stylus/mouse/touch) #8978[capture] - void IWpfHost.SetPointerCapture() => ReleaseMouseCapture(); + void IWpfHost.SetPointerCapture() => CaptureMouse(); //TODO: This will need to be adjusted when multi-window support is added. #8978[windows] WinUI.XamlRoot? IWpfHost.XamlRoot => WinUI.Window.Current?.RootElement?.XamlRoot; diff --git a/src/Uno.UI.XamlHost.Skia.Wpf/UnoXamlHostBase.host.cs b/src/Uno.UI.XamlHost.Skia.Wpf/UnoXamlHostBase.host.cs index 0e1a8b9a7ed1..c2eee9259420 100644 --- a/src/Uno.UI.XamlHost.Skia.Wpf/UnoXamlHostBase.host.cs +++ b/src/Uno.UI.XamlHost.Skia.Wpf/UnoXamlHostBase.host.cs @@ -68,9 +68,9 @@ protected override void OnRender(DrawingContext drawingContext) _renderer?.Render(drawingContext); } - void IWpfHost.ReleasePointerCapture() => CaptureMouse(); //TODO: This should capture the correct type of pointer (stylus/mouse/touch) #8978[capture] + void IWpfHost.ReleasePointerCapture() => ReleaseMouseCapture(); //TODO: This should capture the correct type of pointer (stylus/mouse/touch) #8978[capture] - void IWpfHost.SetPointerCapture() => ReleaseMouseCapture(); + void IWpfHost.SetPointerCapture() => CaptureMouse(); WinUI.XamlRoot? IWpfHost.XamlRoot => ChildInternal?.XamlRoot;