fixed bug where scrolling with the thumb would cause the thumb

to jump down too far on long documents.
This commit is contained in:
michaelp%netscape.com 1998-10-05 21:20:54 +00:00
Родитель 85f6efdac2
Коммит 0308904e76
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);