From 09048579133523347bc36f0ae5040334a09694fa Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Mon, 11 Apr 2022 17:42:39 +0200 Subject: [PATCH] Fix ScrollGestureEndedEvent type. 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`. --- src/Avalonia.Input/Gestures.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Avalonia.Input/Gestures.cs b/src/Avalonia.Input/Gestures.cs index 86e6e96a71..4349fca7db 100644 --- a/src/Avalonia.Input/Gestures.cs +++ b/src/Avalonia.Input/Gestures.cs @@ -26,8 +26,8 @@ namespace Avalonia.Input RoutedEvent.Register( "ScrollGesture", RoutingStrategies.Bubble, typeof(Gestures)); - public static readonly RoutedEvent ScrollGestureEndedEvent = - RoutedEvent.Register( + public static readonly RoutedEvent ScrollGestureEndedEvent = + RoutedEvent.Register( "ScrollGestureEnded", RoutingStrategies.Bubble, typeof(Gestures)); public static readonly RoutedEvent PointerTouchPadGestureMagnifyEvent =