make the system unit of mousewhell scrolling 3 lines on osx. r=sdagley/sr=sfraser/a=chofmann. bug# 100799

This commit is contained in:
pinkerton%netscape.com 2001-09-21 18:25:31 +00:00
Родитель 6e052313eb
Коммит f9a1e0610c
1 изменённых файлов: 3 добавлений и 2 удалений

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

@ -1262,8 +1262,9 @@ nsMacEventHandler :: Scroll ( EventMouseWheelAxis inAxis, PRInt32 inDelta, const
widgetToScroll = gEventDispatchHandler.GetActive(); widgetToScroll = gEventDispatchHandler.GetActive();
// the direction we get from the carbon event is opposite from the way mozilla looks at // the direction we get from the carbon event is opposite from the way mozilla looks at
// it. Reverse the direction. // it. Reverse the direction. Also, scroll by 3 lines at a time. |inDelta| represents the
inDelta *= -1; // number of groups of lines to scroll, not the exact number of lines to scroll.
inDelta *= -3;
HandleScrollEvent ( inAxis, PR_TRUE, inDelta, inMouseLoc, widgetToScroll ); HandleScrollEvent ( inAxis, PR_TRUE, inDelta, inMouseLoc, widgetToScroll );