diff options
author | Dimitar Radev <unknown> | 2018-02-06 16:57:12 +1100 |
---|---|---|
committer | Dimitar Radev <unknown> | 2018-02-06 16:57:12 +1100 |
commit | 5cd1ba0ebee04d64386ec1ad20abec17153b18ea (patch) | |
tree | 4b8e7c8d3d6ecd3d8c33a3f41a275362f9f3a678 /src/Editor.cxx | |
parent | 3f1c1f5fe73d9fe48af8ffc2f0dbf2107d65cf52 (diff) | |
download | scintilla-mirror-5cd1ba0ebee04d64386ec1ad20abec17153b18ea.tar.gz |
[Bug #1983] Fix double tap word selection on Windows 10 1709 Fall Creators Update.
Times of observed mouse events went backwards causing unsigned overflow.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index b6e572c24..f33eefe69 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4455,7 +4455,7 @@ void Editor::ButtonDownWithModifiers(Point pt, unsigned int curTime, int modifie if (shift && !inSelMargin) { SetSelection(newPos); } - if (((curTime - lastClickTime) < Platform::DoubleClickTime()) && Close(pt, lastClick, doubleClickCloseThreshold)) { + if ((curTime < (lastClickTime+Platform::DoubleClickTime())) && Close(pt, lastClick, doubleClickCloseThreshold)) { //Platform::DebugPrintf("Double click %d %d = %d\n", curTime, lastClickTime, curTime - lastClickTime); SetMouseCapture(true); FineTickerStart(tickScroll, 100, 10); |