From aae4d9682f33187adc9dfe480fb83c05955afebe Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 8 Apr 2015 16:04:10 +0100 Subject: Fix mupdf viewer on windows; mousewheel events would stop keys responding Mousewheel events would 'capture' the mouse, and consequently all keyboard events would be ignored until the next mouse button up. Simple fix. --- platform/x11/win_main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/platform/x11/win_main.c b/platform/x11/win_main.c index 444e8d67..df29e022 100644 --- a/platform/x11/win_main.c +++ b/platform/x11/win_main.c @@ -1099,11 +1099,15 @@ viewproc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) case WM_MOUSEWHEEL: if ((signed short)HIWORD(wParam) > 0) + { handlemouse(oldx, oldy, 4, 1); - //handlekey(LOWORD(wParam) & MK_SHIFT ? '+' : 'k'); + handlemouse(oldx, oldy, 4, -1); + } else + { handlemouse(oldx, oldy, 5, 1); - //handlekey(LOWORD(wParam) & MK_SHIFT ? '-' : 'j'); + handlemouse(oldx, oldy, 5, -1); + } return 0; /* Timer */ -- cgit v1.2.3