Browse Source

Properties of PointerEventArgs in TappedEventArgs (#6322)

* Properties of PointerEventArgs in TappedEventArgs

* remove InputModifiers and Device properties

* move properties

* remove whitespace
release/0.10.7
GMIKE 5 years ago
committed by Dan Walmsley
parent
commit
89b09e95d6
  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