mirror of https://github.com/axmolengine/axmol.git
reduce useless convert
This commit is contained in:
parent
f797dea827
commit
e8f55069e3
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue