From ee648c7c2c76cb9bcdf3b0833890aeafe30ea083 Mon Sep 17 00:00:00 2001 From: Lubomir Tetak Date: Mon, 14 Mar 2022 16:01:48 +0100 Subject: [PATCH] Invalid Mouse Over events on NC raw events --- src/Avalonia.Input/MouseDevice.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Avalonia.Input/MouseDevice.cs b/src/Avalonia.Input/MouseDevice.cs index eed51e6c4a..a5d54bb047 100644 --- a/src/Avalonia.Input/MouseDevice.cs +++ b/src/Avalonia.Input/MouseDevice.cs @@ -147,6 +147,8 @@ namespace Avalonia.Input if(mouse._disposed) return; + if (e.Type == RawPointerEventType.NonClientLeftButtonDown) return; + _position = e.Root.PointToScreen(e.Position); var props = CreateProperties(e); var keyModifiers = KeyModifiersUtils.ConvertToKey(e.InputModifiers);