Skip to content

Commit

Permalink
Fix compilation for WinUI 3 version
Browse files Browse the repository at this point in the history
  • Loading branch information
BreeceW committed Mar 14, 2024
1 parent c9d8058 commit 22f6305
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion WinUIEditor/EditorBaseControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -479,12 +479,14 @@ namespace winrt::WinUIEditor::implementation

void EditorBaseControl::ImageTarget_PointerExited(IInspectable const &sender, PointerRoutedEventArgs const &e)
{
#ifndef WINUI3
_isPointerOver = false;
_scintilla->PointerExited();
if (!_wrapper->HaveMouseCapture())
{
winrt::Windows::UI::Core::CoreWindow::GetForCurrentThread().PointerCursor(Windows::UI::Core::CoreCursor{ Windows::UI::Core::CoreCursorType::Arrow, 0 });
}
#endif
_scintilla->PointerExited();
}

void EditorBaseControl::OnKeyDown(KeyRoutedEventArgs const &e)
Expand Down

0 comments on commit 22f6305

Please sign in to comment.