Add case to ignore the unused scroll events in the view framework

This commit is contained in:
Ian McInerney 2023-06-29 23:19:14 +01:00
parent bb4fb9088f
commit 8b8586f54b
1 changed files with 7 additions and 0 deletions

View File

@ -618,6 +618,13 @@ void WX_VIEW_CONTROLS::onScroll( wxScrollWinEvent& aEvent )
m_view->SetCenter( center );
}
else if( type == wxEVT_SCROLLWIN_THUMBRELEASE ||
type == wxEVT_SCROLLWIN_TOP ||
type == wxEVT_SCROLLWIN_BOTTOM )
{
// Do nothing on thumb release, we don't care about it.
// We don't have a concept of top or bottom in our viewport, so ignore those events.
}
else
{
double dist = 0;