0
0
mirror of https://github.com/vim/vim.git synced 2025-10-16 07:24:23 -04:00

patch 9.0.0787: mouse scrolling in terminal misbehaves without dll

Problem:    MS-Windows: mouse scrolling in terminal misbehaves without dll.
Solution:   Add #ifdef as a temporary solution. (Christopher Plewright,
            closes #11392)
This commit is contained in:
Christopher Plewright
2022-10-18 13:33:26 +01:00
committed by Bram Moolenaar
parent 208567e9d7
commit 9298a996fc
2 changed files with 4 additions and 2 deletions

View File

@@ -1397,14 +1397,14 @@ decode_mouse_event(
// unprocessed mouse click?
if (g_nMouseClick != -1)
return TRUE;
#ifdef VIMDLL
if (pmer->dwEventFlags == MOUSE_WHEELED
|| pmer->dwEventFlags == MOUSE_HWHEELED)
{
decode_mouse_wheel(pmer);
return TRUE; // we now should have a mouse scroll in g_nMouseClick
}
#endif
nButton = -1;
g_xMouse = pmer->dwMousePosition.X;
g_yMouse = pmer->dwMousePosition.Y;