Browse Source

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

Ignore handled events in TouchDevice.
pull/7969/head
Steven Kirk 5 years ago
committed by GitHub
parent
commit
d7798f1bd5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.Input/TouchDevice.cs

2
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))

Loading…
Cancel
Save