Skip to content

Commit

Permalink
Merge pull request #7804 from ltetak/feature/mouse_over_events
Browse files Browse the repository at this point in the history
Invalid Mouse Over events on NC raw events
  • Loading branch information
jmacato authored Mar 15, 2022
2 parents c3a9856 + 1ecb657 commit ce3a541
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Avalonia.Input/MouseDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ private void ProcessRawEvent(RawPointerEventArgs e)
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);
Expand Down

0 comments on commit ce3a541

Please sign in to comment.