Skip to content

Commit 9385175

Browse files
authored
Merge pull request #8141 from wieslawsoltes/fixes/FixPointerMovedEventNameRegistration
Fix PointerMovedEvent name registration
2 parents 1eef75e + f3e2d45 commit 9385175

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Avalonia.Base/Input/InputElement.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public class InputElement : Interactive, IInputElement
144144
/// </summary>
145145
public static readonly RoutedEvent<PointerEventArgs> PointerMovedEvent =
146146
RoutedEvent.Register<InputElement, PointerEventArgs>(
147-
"PointerMove",
147+
"PointerMoved",
148148
RoutingStrategies.Tunnel | RoutingStrategies.Bubble);
149149

150150
/// <summary>

tests/Avalonia.Base.UnitTests/Input/PointerOverTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,10 @@ void HandleEvent(object? sender, PointerEventArgs e)
247247
new[]
248248
{
249249
((object?)decorator, "PointerEnter"),
250-
(decorator, "PointerMove"),
250+
(decorator, "PointerMoved"),
251251
(decorator, "PointerLeave"),
252252
(canvas, "PointerEnter"),
253-
(canvas, "PointerMove")
253+
(canvas, "PointerMoved")
254254
},
255255
result);
256256
}

0 commit comments

Comments
 (0)