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
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user