зеркало из https://github.com/mozilla/pjs.git
fixed bug where scrolling with the thumb would cause the thumb
to jump down too far on long documents.
This commit is contained in:
Родитель
b9c00d9b95
Коммит
1fca219bfe
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче