Merge pull request #14600 from enhhh/enh_v3

We should not intercept touch event if scrollview's _direction is NONE
This commit is contained in:
zilongshanren 2016-01-21 10:58:20 +08:00
commit d9af70f913
1 changed files with 2 additions and 1 deletions

View File

@ -953,7 +953,8 @@ void ScrollView::interceptTouchEvent(Widget::TouchEventType event, Widget *sende
Layout::interceptTouchEvent(event, sender, touch);
return;
}
if(_direction == Direction::NONE)
return;
Vec2 touchPoint = touch->getLocation();
switch (event)
{