Skip to content

Commit

Permalink
fix: Fix pointer events timestamp being in ms instead of ticks on X11
Browse files Browse the repository at this point in the history
  • Loading branch information
dr1rrb committed Sep 25, 2024
1 parent d5a30b0 commit 0d37d5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Uno.UI.Runtime.Skia.X11/X11PointerInputSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ private PointerPoint CreatePointFromCurrentState(IntPtr time)
// This matches the format of WinUI. See also: https://github.com/unoplatform/uno/issues/14535
var point = new PointerPoint(
frameId: (uint)time, // UNO TODO: How should set the frame, timestamp may overflow.
timestamp: (uint)time,
timestamp: (ulong)(time * TimeSpan.TicksPerMillisecond),
PointerDevice.For(PointerDeviceType.Mouse),
0, // TODO: XInput
new Point(_mousePosition.X / scale, _mousePosition.Y / scale),
Expand Down

0 comments on commit 0d37d5a

Please sign in to comment.