Need to initialize tracking value on mousedown.

This commit is contained in:
Duane Clark 2002-12-17 21:00:11 +00:00 committed by Alexandre Julliard
parent c78902221f
commit a3b5780491
1 changed files with 3 additions and 0 deletions

View File

@ -1023,6 +1023,9 @@ static void SCROLL_HandleScrollEvent( HWND hwnd, INT nBar, UINT msg, POINT pt)
SCROLL_TrackingWin = hwnd;
SCROLL_TrackingBar = nBar;
SCROLL_TrackingPos = trackThumbPos + lastMousePos - lastClickPos;
SCROLL_TrackingVal = SCROLL_GetThumbVal( infoPtr, &rect,
vertical,
SCROLL_TrackingPos );
if (!SCROLL_MovingThumb)
SCROLL_DrawMovingThumb(hdc, &rect, vertical, arrowSize, thumbSize);
}