mirror of https://github.com/axmolengine/axmol.git
Merge pull request #12711 from yangws/issue_12626
Fix bug taken from pr12602: scroll view can't scroll if pressed the b…
This commit is contained in:
commit
cdaa994b84
|
@ -783,7 +783,9 @@ void Widget::propagateTouchEvent(cocos2d::ui::Widget::TouchEventType event, coco
|
|||
Widget* widgetParent = getWidgetParent();
|
||||
if (widgetParent)
|
||||
{
|
||||
widgetParent->_hittedByCamera = _hittedByCamera;
|
||||
widgetParent->interceptTouchEvent(event, sender, touch);
|
||||
widgetParent->_hittedByCamera = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -974,7 +976,9 @@ void Widget::interceptTouchEvent(cocos2d::ui::Widget::TouchEventType event, coco
|
|||
Widget* widgetParent = getWidgetParent();
|
||||
if (widgetParent)
|
||||
{
|
||||
widgetParent->_hittedByCamera = _hittedByCamera;
|
||||
widgetParent->interceptTouchEvent(event,sender,touch);
|
||||
widgetParent->_hittedByCamera = nullptr;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue