using scroll axis in translation to scrollwin events, avoiding blocking immediate updates when handling the scroll event

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44357 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2007-02-04 06:26:02 +00:00
parent aea37008b7
commit 6682e732a6

View File

@@ -463,6 +463,10 @@ void wxScrollHelper::HandleOnScroll(wxScrollWinEvent& event)
}
bool needsRefresh = false;
#ifdef __WXMAC__
// OS X blocks on immediate redraws, so make this a refresh
needsRefresh = true;
#endif
int dx = 0,
dy = 0;
int orient = event.GetOrientation();
@@ -1299,7 +1303,7 @@ void wxScrollHelper::HandleOnMouseWheel(wxMouseEvent& event)
wxScrollWinEvent newEvent;
newEvent.SetPosition(0);
newEvent.SetOrientation(wxVERTICAL);
newEvent.SetOrientation( event.GetWheelAxis() == 0 ? wxVERTICAL : wxHORIZONTAL);
newEvent.SetEventObject(m_win);
if (event.IsPageScroll())