Browse Source

Merge pull request #4811 from AvaloniaUI/fix/win32-cancel-capture

[Win32] Drop mouse capture on WM_CANCELMODE
pull/4815/head
danwalmsley 6 years ago
committed by GitHub
parent
commit
30e4e64c76
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs

4
src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs

@ -200,6 +200,10 @@ namespace Avalonia.Win32
DipFromLParam(lParam), GetMouseModifiers(wParam));
break;
}
// Mouse capture is lost
case WindowsMessage.WM_CANCELMODE:
_mouseDevice.Capture(null);
break;
case WindowsMessage.WM_MOUSEMOVE:
{

Loading…
Cancel
Save