committed by
GitHub
2 changed files with 28 additions and 4 deletions
@ -0,0 +1,18 @@ |
|||||
|
using Avalonia.Interactivity; |
||||
|
using Avalonia.VisualTree; |
||||
|
|
||||
|
namespace Avalonia.Input |
||||
|
{ |
||||
|
public class TappedEventArgs : RoutedEventArgs |
||||
|
{ |
||||
|
private readonly PointerEventArgs lastPointerEventArgs; |
||||
|
|
||||
|
public TappedEventArgs(RoutedEvent routedEvent, PointerEventArgs lastPointerEventArgs) |
||||
|
: base(routedEvent) |
||||
|
{ |
||||
|
this.lastPointerEventArgs = lastPointerEventArgs; |
||||
|
} |
||||
|
|
||||
|
public Point GetPosition(IVisual? relativeTo) => lastPointerEventArgs.GetPosition(relativeTo); |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue