From: Fabian Maurer dark.shadow4@web.de
This fixes a regression from bb496ea8. Also closer mimics windows behavior, moving the mouse should not reset the scrolling timer.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56582 --- dlls/win32u/scroll.c | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/dlls/win32u/scroll.c b/dlls/win32u/scroll.c index f72ef0c2929..1f0d7dd2330 100644 --- a/dlls/win32u/scroll.c +++ b/dlls/win32u/scroll.c @@ -680,6 +680,8 @@ void handle_scroll_event( HWND hwnd, int bar, UINT msg, POINT pt ) break;
case SCROLL_TOP_ARROW: + if (msg == WM_MOUSEMOVE) + break; draw_scroll_bar( hwnd, hdc, bar, hittest, &g_tracking_info, TRUE, FALSE ); if (hittest == g_tracking_info.hit_test) { @@ -696,6 +698,8 @@ void handle_scroll_event( HWND hwnd, int bar, UINT msg, POINT pt ) break;
case SCROLL_TOP_RECT: + if (msg == WM_MOUSEMOVE) + break; draw_scroll_bar( hwnd, hdc, bar, hittest, &g_tracking_info, FALSE, TRUE ); if (hittest == g_tracking_info.hit_test) { @@ -754,6 +758,8 @@ void handle_scroll_event( HWND hwnd, int bar, UINT msg, POINT pt ) break;
case SCROLL_BOTTOM_RECT: + if (msg == WM_MOUSEMOVE) + break; draw_scroll_bar( hwnd, hdc, bar, hittest, &g_tracking_info, FALSE, TRUE ); if (hittest == g_tracking_info.hit_test) { @@ -769,6 +775,8 @@ void handle_scroll_event( HWND hwnd, int bar, UINT msg, POINT pt ) break;
case SCROLL_BOTTOM_ARROW: + if (msg == WM_MOUSEMOVE) + break; draw_scroll_bar( hwnd, hdc, bar, hittest, &g_tracking_info, TRUE, FALSE ); if (hittest == g_tracking_info.hit_test) {