X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2a23d36334c0e84151490766f3ddaf5e53d95ae7..43b5058d590c7acf58e5f75ec015e717d03830a2:/src/gtk/scrolbar.cpp diff --git a/src/gtk/scrolbar.cpp b/src/gtk/scrolbar.cpp index 1b40fc530b..5b03e14703 100644 --- a/src/gtk/scrolbar.cpp +++ b/src/gtk/scrolbar.cpp @@ -109,12 +109,11 @@ static gint gtk_scrollbar_button_release_callback( GtkRange *WXUNUSED(widget), if (win->m_isScrolling) { - wxEventType command = wxEVT_SCROLL_THUMBTRACK; + wxEventType command = wxEVT_SCROLL_THUMBRELEASE; int value = (int)ceil(win->m_adjust->value); int dir = win->HasFlag(wxSB_VERTICAL) ? wxVERTICAL : wxHORIZONTAL; wxScrollEvent event( command, value, dir ); - event.SetScrolling( FALSE ); event.SetEventObject( win ); win->GetEventHandler()->ProcessEvent( event ); }