aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2003-02-23 02:05:55 +0000
committernyamatongwe <devnull@localhost>2003-02-23 02:05:55 +0000
commitdc46f3c00e60ecbca323ea661c02c146943024cf (patch)
tree0dfb714062262b4ce1d68b9c349c7b6beda63de1 /src
parenteb4c37657c76b04e3b261a568ac88d2f985390f7 (diff)
downloadscintilla-mirror-dc46f3c00e60ecbca323ea661c02c146943024cf.tar.gz
Patch from Jakub Vrana to avoid mouse debouncing on Windows where assigning
a key to double click can result in two mouse clicks arriving with the same time.
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 b156dd3ec..5f3020fc0 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -4338,7 +4338,7 @@ void Editor::ButtonDown(Point pt, unsigned int curTime, bool shift, bool ctrl, b
SetEmptySelection(newPos);
bool doubleClick = false;
// Stop mouse button bounce changing selection type
- if (curTime != lastClickTime) {
+ if (!Platform::MouseButtonBounce() || curTime != lastClickTime) {
if (selectionType == selChar) {
selectionType = selWord;
doubleClick = true;