aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2003-02-23 02:05:55 +0000
committernyamatongwe <unknown>2003-02-23 02:05:55 +0000
commit647c273bc7f97218914b1b57f9f7a10ad3beb715 (patch)
tree0dfb714062262b4ce1d68b9c349c7b6beda63de1 /src
parent3de2de75f4d65a528089c9e28037974b44632ab9 (diff)
downloadscintilla-mirror-647c273bc7f97218914b1b57f9f7a10ad3beb715.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;