aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cocoa/ScintillaCocoa.mm2
-rw-r--r--doc/ScintillaHistory.html3
2 files changed, 4 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);
}
}
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html
index 90e82cc41..a1abe6ccf 100644
--- a/doc/ScintillaHistory.html
+++ b/doc/ScintillaHistory.html
@@ -603,6 +603,9 @@
Add SCI_LINEINDENT and SCI_LINEDEDENT.
<a href="https://sourceforge.net/p/scintilla/feature-requests/1524/">Feature #1524</a>.
</li>
+ <li>
+ Fix bug on Cocoa where double-click stopped working when system had been running for a long time.
+ </li>
</ul>
<h3>
<a href="https://www.scintilla.org/scintilla551.zip">Release 5.5.1</a>