Forráskód Böngészése

Fixed OnPointerReleased parameter type

Wiesław Šoltés 8 éve
szülő
commit
a26c261aad

+ 1 - 1
src/Avalonia.Controls/Button.cs

@@ -226,7 +226,7 @@ namespace Avalonia.Controls
         }
 
         /// <inheritdoc/>
-        protected override void OnPointerReleased(PointerEventArgs e)
+        protected override void OnPointerReleased(PointerReleasedEventArgs e)
         {
             base.OnPointerReleased(e);
 

+ 1 - 1
src/Avalonia.Controls/Primitives/Thumb.cs

@@ -86,7 +86,7 @@ namespace Avalonia.Controls.Primitives
             RaiseEvent(ev);
         }
 
-        protected override void OnPointerReleased(PointerEventArgs e)
+        protected override void OnPointerReleased(PointerReleasedEventArgs e)
         {
             if (_lastPoint.HasValue)
             {

+ 1 - 1
src/Avalonia.Controls/TextBox.cs

@@ -522,7 +522,7 @@ namespace Avalonia.Controls
             }
         }
 
-        protected override void OnPointerReleased(PointerEventArgs e)
+        protected override void OnPointerReleased(PointerReleasedEventArgs e)
         {
             if (_presenter != null && e.Device.Captured == _presenter)
             {

+ 1 - 1
src/Avalonia.HtmlRenderer/HtmlControl.cs

@@ -413,7 +413,7 @@ namespace Avalonia.Controls.Html
         /// <summary>
         /// Handle mouse up to handle selection and link click. 
         /// </summary>
-        protected override void OnPointerReleased(PointerEventArgs e)
+        protected override void OnPointerReleased(PointerReleasedEventArgs e)
         {
             base.OnPointerReleased(e);
             LeftMouseButton = false;

+ 1 - 1
src/Avalonia.Input/InputElement.cs

@@ -473,7 +473,7 @@ namespace Avalonia.Input
         /// Called before the <see cref="PointerReleased"/> event occurs.
         /// </summary>
         /// <param name="e">The event args.</param>
-        protected virtual void OnPointerReleased(PointerEventArgs e)
+        protected virtual void OnPointerReleased(PointerReleasedEventArgs e)
         {
         }