diff options
| author | nyamatongwe <unknown> | 2002-05-21 00:02:18 +0000 |
|---|---|---|
| committer | nyamatongwe <unknown> | 2002-05-21 00:02:18 +0000 |
| commit | 6154a9661cb51a0375a94956bf5aa005dea18505 (patch) | |
| tree | 3e6624ddf5ab4b07fc06b4c99bfb23b803b567d4 | |
| parent | 3723e64117215e5a4404e530b339137e86ebaf2e (diff) | |
| download | scintilla-mirror-6154a9661cb51a0375a94956bf5aa005dea18505.tar.gz | |
Changed from GetTickCount to GetMessageTime as that retieves the time the mouse was clicked rather than the current time and there may have been a delay.
| -rw-r--r-- | win32/ScintillaWin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 184bfb2bc..bad4758fe 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -580,7 +580,7 @@ sptr_t ScintillaWin::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam // Platform::IsKeyDown(VK_SHIFT), // Platform::IsKeyDown(VK_CONTROL), // Platform::IsKeyDown(VK_MENU)); - ButtonDown(Point::FromLong(lParam), ::GetTickCount(), + ButtonDown(Point::FromLong(lParam), ::GetMessageTime(), (wParam & MK_SHIFT) != 0, (wParam & MK_CONTROL) != 0, Platform::IsKeyDown(VK_MENU)); @@ -593,7 +593,7 @@ sptr_t ScintillaWin::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam case WM_LBUTTONUP: ButtonUp(Point::FromLong(lParam), - ::GetTickCount(), + ::GetMessageTime(), (wParam & MK_CONTROL) != 0); break; |
