Browse Source
Merge pull request #8141 from wieslawsoltes/fixes/FixPointerMovedEventNameRegistration
Fix PointerMovedEvent name registration
pull/8148/head
Max Katz
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
3 deletions
-
src/Avalonia.Base/Input/InputElement.cs
-
tests/Avalonia.Base.UnitTests/Input/PointerOverTests.cs
|
|
|
@ -144,7 +144,7 @@ namespace Avalonia.Input |
|
|
|
/// </summary>
|
|
|
|
public static readonly RoutedEvent<PointerEventArgs> PointerMovedEvent = |
|
|
|
RoutedEvent.Register<InputElement, PointerEventArgs>( |
|
|
|
"PointerMove", |
|
|
|
"PointerMoved", |
|
|
|
RoutingStrategies.Tunnel | RoutingStrategies.Bubble); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
@ -247,10 +247,10 @@ namespace Avalonia.Base.UnitTests.Input |
|
|
|
new[] |
|
|
|
{ |
|
|
|
((object?)decorator, "PointerEnter"), |
|
|
|
(decorator, "PointerMove"), |
|
|
|
(decorator, "PointerMoved"), |
|
|
|
(decorator, "PointerLeave"), |
|
|
|
(canvas, "PointerEnter"), |
|
|
|
(canvas, "PointerMove") |
|
|
|
(canvas, "PointerMoved") |
|
|
|
}, |
|
|
|
result); |
|
|
|
} |
|
|
|
|