aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2024-08-15 16:05:53 +1000
committerNeil <nyamatongwe@gmail.com>2024-08-15 16:05:53 +1000
commit6f51f5975920272f5f691d690107d15291a335f2 (patch)
treee1dda83cdba52e6e0dcc0007c3d946a457c9c84a /cocoa
parent1fded9a47c7de174399d809cdbd27773b1064261 (diff)
downloadscintilla-mirror-6f51f5975920272f5f691d690107d15291a335f2.tar.gz
Fix bug where double-click stopped working when system had been running for a
long time.
Diffstat (limited to 'cocoa')
-rw-r--r--cocoa/ScintillaCocoa.mm2
1 files changed, 1 insertions, 1 deletions
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<unsigned int>(event.timestamp * 1000);
+ return static_cast<unsigned int>(std::lround(event.timestamp * 1000.0) % 2000000000);
}
}