mirror of https://github.com/axmolengine/axmol.git
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:
commit
d9af70f913
|
@ -953,7 +953,8 @@ void ScrollView::interceptTouchEvent(Widget::TouchEventType event, Widget *sende
|
||||||
Layout::interceptTouchEvent(event, sender, touch);
|
Layout::interceptTouchEvent(event, sender, touch);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(_direction == Direction::NONE)
|
||||||
|
return;
|
||||||
Vec2 touchPoint = touch->getLocation();
|
Vec2 touchPoint = touch->getLocation();
|
||||||
switch (event)
|
switch (event)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue