reduce useless convert

This commit is contained in:
xuzhiqiang 2013-12-16 18:20:10 +08:00
parent f797dea827
commit e8f55069e3
1 changed files with 1 additions and 1 deletions

View File

@ -612,7 +612,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;
}