git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42088
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
else
scrollEvent = wxEVT_SCROLL_THUMBTRACK;
else
scrollEvent = wxEVT_SCROLL_THUMBTRACK;
+ // Do not send an event if the value has not actually changed
+ // (Also works for wxSpinCtrl)
+ if ( m_value == oldValue )
+ return;
+
wxSpinEvent event( scrollEvent, m_windowId );
event.SetPosition( m_value );
wxSpinEvent event( scrollEvent, m_windowId );
event.SetPosition( m_value );