From d8eab5dbcdf3584f57f7aca3fd8cd3b32b4040e5 Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 20 Oct 2006 21:10:31 +0000 Subject: [PATCH] mouse wheel should generate down and immediate up messages, so it does not look like keyrepeat --- panda/src/windisplay/winGraphicsWindow.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panda/src/windisplay/winGraphicsWindow.cxx b/panda/src/windisplay/winGraphicsWindow.cxx index af07aafe2a..4a13bc874d 100644 --- a/panda/src/windisplay/winGraphicsWindow.cxx +++ b/panda/src/windisplay/winGraphicsWindow.cxx @@ -1220,11 +1220,13 @@ window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) { if (delta >= 0) { while (delta > 0) { handle_keypress(MouseButton::wheel_up(), point.x, point.y, time); + handle_keyrelease(MouseButton::wheel_up(), time); delta -= WHEEL_DELTA; } } else { while (delta < 0) { handle_keypress(MouseButton::wheel_down(), point.x, point.y, time); + handle_keyrelease(MouseButton::wheel_down(), time); delta += WHEEL_DELTA; } }