fix for pageup 'blind spot'
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
7c4a59a881
commit
4dcfef961d
@ -662,7 +662,8 @@ void wxScrolledWindow::OnChar(wxKeyEvent& event)
|
||||
{
|
||||
case WXK_PAGEUP:
|
||||
case WXK_PRIOR:
|
||||
Scroll(-1, sty - (5 * cliy / 6));
|
||||
int y = sty - (5 * cliy / 6);
|
||||
Scroll(-1, (y == -1) ? 0 : newy);
|
||||
break;
|
||||
|
||||
case WXK_PAGEDOWN:
|
||||
|
Loading…
Reference in New Issue
Block a user