mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
Crash fix when scrolling a listbox.
--HG-- branch : dev
This commit is contained in:
@@ -107,8 +107,10 @@ void EventDispatcher::update( const Time& time ) {
|
||||
Node * lastFocusControl = mFocusControl;
|
||||
|
||||
if ( NULL != mOverControl ) {
|
||||
mOverControl->onMouseUp( mMousePosi, mInput->getReleaseTrigger() );
|
||||
sendMsg( mOverControl, NodeMessage::MouseUp, mInput->getReleaseTrigger() );
|
||||
getOverControl()->onMouseUp( mMousePosi, mInput->getReleaseTrigger() );
|
||||
|
||||
if ( NULL != getOverControl() )
|
||||
sendMsg( getOverControl(), NodeMessage::MouseUp, mInput->getReleaseTrigger() );
|
||||
}
|
||||
|
||||
if ( mInput->getClickTrigger() ) {
|
||||
|
||||
@@ -43,15 +43,18 @@ void UIListBoxItem::setTheme( UITheme * Theme ) {
|
||||
}
|
||||
|
||||
Uint32 UIListBoxItem::onMouseUp( const Vector2i& Pos, const Uint32 Flags ) {
|
||||
UITextView::onMouseUp( Pos, Flags );
|
||||
|
||||
if ( mEnabled && mVisible ) {
|
||||
UIListBox * LBParent = reinterpret_cast<UIListBox*> ( getParent()->getParent() );
|
||||
|
||||
if ( Flags & EE_BUTTONS_WUWD && LBParent->getVerticalScrollBar()->isVisible() ) {
|
||||
// Manage click can delete _this_
|
||||
LBParent->getVerticalScrollBar()->getSlider()->manageClick( Flags );
|
||||
}
|
||||
}
|
||||
|
||||
return UITextView::onMouseUp( Pos, Flags );
|
||||
return 1;
|
||||
}
|
||||
|
||||
Uint32 UIListBoxItem::onMouseClick( const Vector2i& Pos, const Uint32 Flags ) {
|
||||
|
||||
Reference in New Issue
Block a user