diff --git a/src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs b/src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs index f0140204a4..93d76ee057 100644 --- a/src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs +++ b/src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs @@ -582,7 +582,6 @@ namespace Avalonia.Win32 e = args; break; } - case WindowsMessage.WM_POINTERDEVICEOUTOFRANGE: case WindowsMessage.WM_POINTERLEAVE: case WindowsMessage.WM_POINTERCAPTURECHANGED: { @@ -612,22 +611,6 @@ namespace Avalonia.Win32 }; break; } - case WindowsMessage.WM_POINTERDEVICEINRANGE: - { - if (!_wmPointerEnabled) - { - break; - } - - // Do not generate events, but release mouse capture on any other device input. - GetDevicePointerInfo(wParam, out var device, out _, out _, out _, ref timestamp); - if (device != _mouseDevice) - { - _mouseDevice.Capture(null); - return IntPtr.Zero; - } - break; - } case WindowsMessage.WM_POINTERACTIVATE: { //occurs when a pointer activates an inactive window.