aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorDimitar Radev <unknown>2018-02-06 16:57:12 +1100
committerDimitar Radev <unknown>2018-02-06 16:57:12 +1100
commit9471284e024454742a6c50b1786578eb48d00731 (patch)
tree30c2f7adbf2ffb622d37a53f3a40bb121d165ca5 /src
parent6fb4db4d6e160550a0889e209174b86e94bfe672 (diff)
downloadscintilla-mirror-9471284e024454742a6c50b1786578eb48d00731.tar.gz
Backport: [Bug #1983] Fix double tap word selection on Windows 10 1709 Fall Creators Update.
Times of observed mouse events went backwards causing unsigned overflow. Backport of changeset 6449:1280ef150bbb.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 75b3859e0..63b41a4d5 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);