Skip to content

Commit

Permalink
chore: Whoops, how did that happen
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed Jun 27, 2022
1 parent d49d4fc commit 1845fb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Uno.UI.Runtime.Skia.Wpf/WpfHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/Uno.UI.XamlHost.Skia.Wpf/UnoXamlHostBase.host.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 1845fb0

Please sign in to comment.