Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properties of PointerEventArgs in TappedEventArgs #6322

Merged
merged 8 commits into from
Jul 29, 2021
7 changes: 6 additions & 1 deletion src/Avalonia.Input/TappedEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ namespace Avalonia.Input
public class TappedEventArgs : RoutedEventArgs
{
private readonly PointerEventArgs lastPointerEventArgs;

public IPointer Pointer => lastPointerEventArgs.Pointer;
maxkatz6 marked this conversation as resolved.
Show resolved Hide resolved
public InputModifiers InputModifiers => lastPointerEventArgs.InputModifiers;
public KeyModifiers KeyModifiers => lastPointerEventArgs.KeyModifiers;
public ulong Timestamp => lastPointerEventArgs.Timestamp;
public IPointerDevice Device => lastPointerEventArgs.Device;
maxkatz6 marked this conversation as resolved.
Show resolved Hide resolved

maxkatz6 marked this conversation as resolved.
Show resolved Hide resolved
public TappedEventArgs(RoutedEvent routedEvent, PointerEventArgs lastPointerEventArgs)
: base(routedEvent)
{
Expand Down