Skip to content

Commit

Permalink
fix(macOS): Avoid an overflow which breaks drag-and-drop
Browse files Browse the repository at this point in the history
  • Loading branch information
spouliot committed Dec 9, 2024
1 parent e667e89 commit d629518
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -911,8 +911,7 @@ - (void)sendEvent:(NSEvent *)event {
// other
NSTimeInterval ts = event.timestamp;

// The precision of the frameId is 10 frame per ms ... which should be enough
data.frameId = (uint)(ts * 1000.0 * 10.0);
data.frameId = (uint)(ts * 10.0);

NSDate *now = [[NSDate alloc] init];
NSDate *boot = [[NSDate alloc] initWithTimeInterval:uno_get_system_uptime() sinceDate:now];
Expand Down

0 comments on commit d629518

Please sign in to comment.