From 6f51f5975920272f5f691d690107d15291a335f2 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 15 Aug 2024 16:05:53 +1000 Subject: Fix bug where double-click stopped working when system had been running for a long time. --- cocoa/ScintillaCocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cocoa') diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index 223c9dac0..be71de367 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -2456,7 +2456,7 @@ void ScintillaCocoa::SetDocPointer(Document *document) { namespace { unsigned int TimeOfEvent(NSEvent *event) { - return static_cast(event.timestamp * 1000); + return static_cast(std::lround(event.timestamp * 1000.0) % 2000000000); } } -- cgit v1.2.3