Skip to content

Commit

Permalink
Merge pull request #19050 from unoplatform/dev/spouliot/macos-drag-n-…
Browse files Browse the repository at this point in the history
…drop-fix

fix(macOS): Avoid an overflow which breaks drag-and-drop
  • Loading branch information
jeromelaban authored Dec 10, 2024
2 parents fa98e1a + 231706b commit e63f21e
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 e63f21e

Please sign in to comment.