Browse Source

Properties of PointerEventArgs in TappedEventArgs (#6322)

* Properties of PointerEventArgs in TappedEventArgs

* remove InputModifiers and Device properties

* move properties

* remove whitespace
pull/6340/head
GMIKE 5 years ago
committed by GitHub
parent
commit
4d8d31dfe9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/Avalonia.Input/TappedEventArgs.cs

4
src/Avalonia.Input/TappedEventArgs.cs

@ -13,6 +13,10 @@ namespace Avalonia.Input
this.lastPointerEventArgs = lastPointerEventArgs;
}
public IPointer Pointer => lastPointerEventArgs.Pointer;
public KeyModifiers KeyModifiers => lastPointerEventArgs.KeyModifiers;
public ulong Timestamp => lastPointerEventArgs.Timestamp;
public Point GetPosition(IVisual? relativeTo) => lastPointerEventArgs.GetPosition(relativeTo);
}
}

Loading…
Cancel
Save