Skip to content

Commit 955fd44

Browse files
committed
fix(pointers): Fix invalid timestamp causing incredible inertia on macOS
1 parent 19da69f commit 955fd44

File tree

1 file changed

+1
-1
lines changed
  • src/Uno.UI.Runtime.Skia.MacOS/UnoNativeMac/UnoNativeMac

1 file changed

+1
-1
lines changed

src/Uno.UI.Runtime.Skia.MacOS/UnoNativeMac/UnoNativeMac/UNOWindow.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ - (void)sendEvent:(NSEvent *)event {
912912
NSTimeInterval ts = event.timestamp;
913913

914914
data.frameId = (uint)(ts * 10.0);
915-
data.timestamp = (uint64)(ts * 1000000);
915+
data.timestamp = (uint64)(ts * 1000000.0);
916916

917917
handled = uno_get_window_mouse_event_callback()(self, &data);
918918
#if DEBUG_MOUSE // very noisy

0 commit comments

Comments
 (0)