Browse Source

Merge pull request #7967 from AvaloniaUI/fixes/touchdevice-handled-events

Ignore handled events in TouchDevice.
Steven Kirk 3 years ago
parent
commit
d7798f1bd5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Avalonia.Input/TouchDevice.cs

+ 1 - 1
src/Avalonia.Input/TouchDevice.cs

@@ -32,7 +32,7 @@ namespace Avalonia.Input
 
         public void ProcessRawEvent(RawInputEventArgs ev)
         {
-            if (_disposed)
+            if (ev.Handled || _disposed)
                 return;
             var args = (RawTouchEventArgs)ev;
             if (!_pointers.TryGetValue(args.TouchPointId, out var pointer))