From 0308904e765e712959be5a51ebd9279f0f51ffd8 Mon Sep 17 00:00:00 2001 From: "michaelp%netscape.com" Date: Mon, 5 Oct 1998 21:20:54 +0000 Subject: [PATCH] fixed bug where scrolling with the thumb would cause the thumb to jump down too far on long documents. --- widget/src/windows/nsScrollbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widget/src/windows/nsScrollbar.cpp b/widget/src/windows/nsScrollbar.cpp index 4c560248e6a0..1d9ab397f978 100644 --- a/widget/src/windows/nsScrollbar.cpp +++ b/widget/src/windows/nsScrollbar.cpp @@ -432,7 +432,7 @@ PRBool nsScrollbar::OnScroll(UINT scrollCode, int cPos) event.position = (PRUint32)NSToIntRound(newPosition * mScaleFactor); result = ConvertStatus((*mEventCallback)(&event)); - newPosition = NSToIntRound(event.position * mScaleFactor); + newPosition = NSToIntRound(event.position / mScaleFactor); } ::SetScrollPos(mWnd, SB_CTL, newPosition, TRUE);