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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
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: |
|
|
|
{ |
|
|
|
|