diff options
author | Neil <nyamatongwe@gmail.com> | 2024-08-15 16:05:53 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2024-08-15 16:05:53 +1000 |
commit | 6f51f5975920272f5f691d690107d15291a335f2 (patch) | |
tree | e1dda83cdba52e6e0dcc0007c3d946a457c9c84a | |
parent | 1fded9a47c7de174399d809cdbd27773b1064261 (diff) | |
download | scintilla-mirror-6f51f5975920272f5f691d690107d15291a335f2.tar.gz |
Fix bug where double-click stopped working when system had been running for a
long time.
-rw-r--r-- | cocoa/ScintillaCocoa.mm | 2 | ||||
-rw-r--r-- | doc/ScintillaHistory.html | 3 |
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> |