aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa
diff options
context:
space:
mode:
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);
}
}