mirror of https://github.com/axmolengine/axmol.git
Merge pull request #4497 from zhiqiangxu/develop
closed #3559: Useless conversion in ScrollView::onTouchBegan
This commit is contained in:
commit
d1ad635ad8
|
@ -594,7 +594,7 @@ bool ScrollView::onTouchBegan(Touch* touch, Event* event)
|
|||
//dispatcher does not know about clipping. reject touches outside visible bounds.
|
||||
if (_touches.size() > 2 ||
|
||||
_touchMoved ||
|
||||
!frame.containsPoint(_container->convertToWorldSpace(_container->convertTouchToNodeSpace(touch))))
|
||||
!frame.containsPoint(touch->getLocation()))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue