X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/85ea2e20777c1a2d0451023f2f4ff4a9fd200bc2..92980e9076469956e1e2cb94df97d0f8d873114a:/src/mac/spinbutt.cpp diff --git a/src/mac/spinbutt.cpp b/src/mac/spinbutt.cpp index a647fbef1f..fd9d5d4e47 100644 --- a/src/mac/spinbutt.cpp +++ b/src/mac/spinbutt.cpp @@ -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 ;