Preserve m_skipped in wx[Var]ScrollHelperEvtHandler::ProcessEvent.
If the event was skipped and not processed, its "skipped" status would be lost. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -298,8 +298,7 @@ bool wxScrollHelperEvtHandler::ProcessEvent(wxEvent& event)
|
||||
}
|
||||
}
|
||||
|
||||
if ( processed )
|
||||
event.Skip(wasSkipped);
|
||||
event.Skip(wasSkipped);
|
||||
|
||||
return processed;
|
||||
}
|
||||
|
@@ -97,10 +97,6 @@ bool wxVarScrollHelperEvtHandler::ProcessEvent(wxEvent& event)
|
||||
if ( wasSkipped )
|
||||
event.Skip(false);
|
||||
|
||||
// reset the skipped flag to false as it might have been set to true in
|
||||
// ProcessEvent() above
|
||||
event.Skip(false);
|
||||
|
||||
if ( evType == wxEVT_SCROLLWIN_TOP ||
|
||||
evType == wxEVT_SCROLLWIN_BOTTOM ||
|
||||
evType == wxEVT_SCROLLWIN_LINEUP ||
|
||||
@@ -127,8 +123,7 @@ bool wxVarScrollHelperEvtHandler::ProcessEvent(wxEvent& event)
|
||||
}
|
||||
#endif // wxUSE_MOUSEWHEEL
|
||||
|
||||
if ( processed )
|
||||
event.Skip(wasSkipped);
|
||||
event.Skip(wasSkipped);
|
||||
|
||||
return processed;
|
||||
}
|
||||
|
Reference in New Issue
Block a user