From e4ced7154bbf7a1e1088c667a66fa413db85528f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 27 Aug 2000 17:09:58 +0000 Subject: [PATCH] crash when trying to scroll the thumb which can't be scrolled fixed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/univ/inphand.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/univ/inphand.cpp b/src/univ/inphand.cpp index 6693f04c18..a582fb8c48 100644 --- a/src/univ/inphand.cpp +++ b/src/univ/inphand.cpp @@ -78,12 +78,6 @@ wxScrollBarTimer::wxScrollBarTimer(wxStdScrollBarInputHandler *handler, m_handler = handler; m_action = action; m_control = control; - - // start scrolling immediately - Notify(); - - // and continue it later - Start(50); // FIXME make this delay configurable } void wxScrollBarTimer::Notify() @@ -408,6 +402,11 @@ wxControlActions wxStdScrollBarInputHandler::Map(wxControl *control, action, event, scrollbar); + // start scrolling immediately + m_timerScroll->Notify(); + + // and continue it later + m_timerScroll->Start(50); // FIXME hardcoded delay } else // no (immediate) action {