git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15606
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
m_value = m_max;
}
- if ( oldValue - m_value == -1 )
+ if ( m_value - oldValue == -1 )
scrollEvent = wxEVT_SCROLL_LINEDOWN ;
- else if ( oldValue - m_value == 1 )
+ else if ( m_value - oldValue == 1 )
scrollEvent = wxEVT_SCROLL_LINEUP ;
else
scrollEvent = wxEVT_SCROLL_THUMBTRACK ;
m_value = m_max;
}
- if ( oldValue - m_value == -1 )
+ if ( m_value - oldValue == -1 )
scrollEvent = wxEVT_SCROLL_LINEDOWN ;
- else if ( oldValue - m_value == 1 )
+ else if ( m_value - oldValue == 1 )
scrollEvent = wxEVT_SCROLL_LINEUP ;
else
scrollEvent = wxEVT_SCROLL_THUMBTRACK ;