the handling of Home/End in wxScrollBar was reversed -- fixed now

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2002-07-09 23:04:47 +00:00
parent 1d1b75ace9
commit a29ffc34c0

View File

@ -139,13 +139,13 @@ bool wxScrollBar::MSWOnScroll(int WXUNUSED(orientation), WXWORD wParam,
int nScrollInc;
switch ( wParam )
{
case SB_TOP:
case SB_BOTTOM:
nScrollInc = maxPos - position;
scrollEvent = wxEVT_SCROLL_TOP;
break;
case SB_BOTTOM:
nScrollInc = - position;
case SB_TOP:
nScrollInc = -position;
scrollEvent = wxEVT_SCROLL_BOTTOM;
break;