corrected direction when sending events

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2002-05-19 08:00:34 +00:00
parent 2708457acc
commit 92432aa111
2 changed files with 4 additions and 4 deletions

View File

@@ -118,9 +118,9 @@ void wxSpinButton::MacHandleValueChanged( int inc )
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 ;

View File

@@ -118,9 +118,9 @@ void wxSpinButton::MacHandleValueChanged( int inc )
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 ;