Let GtkScrolledWindow handle scroll wheel events.
Reset visible range in wxListCtrl after scrolling. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4798,10 +4798,6 @@ void wxListMainWindow::SortItems( wxListCtrlCompare fn, long data )
|
||||
|
||||
void wxListMainWindow::OnScroll(wxScrollWinEvent& event)
|
||||
{
|
||||
// update our idea of which lines are shown when we redraw the window the
|
||||
// next time
|
||||
ResetVisibleLinesRange();
|
||||
|
||||
// FIXME
|
||||
#if ( defined(__WXGTK__) || defined(__WXMAC__) ) && !defined(__WXUNIVERSAL__)
|
||||
wxScrolledWindow::OnScroll(event);
|
||||
@@ -4809,6 +4805,10 @@ void wxListMainWindow::OnScroll(wxScrollWinEvent& event)
|
||||
HandleOnScroll( event );
|
||||
#endif
|
||||
|
||||
// update our idea of which lines are shown when we redraw the window the
|
||||
// next time
|
||||
ResetVisibleLinesRange();
|
||||
|
||||
if ( event.GetOrientation() == wxHORIZONTAL && HasHeader() )
|
||||
{
|
||||
wxGenericListCtrl* lc = GetListCtrl();
|
||||
|
Reference in New Issue
Block a user