From 5cd1ba0ebee04d64386ec1ad20abec17153b18ea Mon Sep 17 00:00:00 2001 From: Dimitar Radev Date: Tue, 6 Feb 2018 16:57:12 +1100 Subject: [Bug #1983] Fix double tap word selection on Windows 10 1709 Fall Creators Update. Times of observed mouse events went backwards causing unsigned overflow. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3