Skip to content

Commit

Permalink
Fix ScrollGestureEndedEvent type.
Browse files Browse the repository at this point in the history
While working on #7964 I noticed that the event type in the field for `ScrollGestureEndedEvent` is incorrect: it's a `ScrollGestureEndedEventArgs` object that gets passed, not a `ScrollGestureEventArgs`.
  • Loading branch information
grokys committed Apr 11, 2022
1 parent 6afc9fd commit 0904857
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Avalonia.Input/Gestures.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public static class Gestures
RoutedEvent.Register<ScrollGestureEventArgs>(
"ScrollGesture", RoutingStrategies.Bubble, typeof(Gestures));

public static readonly RoutedEvent<ScrollGestureEventArgs> ScrollGestureEndedEvent =
RoutedEvent.Register<ScrollGestureEventArgs>(
public static readonly RoutedEvent<ScrollGestureEndedEventArgs> ScrollGestureEndedEvent =
RoutedEvent.Register<ScrollGestureEndedEventArgs>(
"ScrollGestureEnded", RoutingStrategies.Bubble, typeof(Gestures));

public static readonly RoutedEvent<PointerDeltaEventArgs> PointerTouchPadGestureMagnifyEvent =
Expand Down

0 comments on commit 0904857

Please sign in to comment.