mirror of https://github.com/axmolengine/axmol.git
[Dispatcher] Fixing logic errors in CCScrollView after using EventDispatcher.
This commit is contained in:
parent
b77cac8731
commit
6a2536b5bd
|
@ -611,7 +611,7 @@ bool ScrollView::onTouchBegan(Touch* touch, Event* event)
|
|||
return false;
|
||||
}
|
||||
|
||||
if (std::find(_touches.begin(), _touches.end(), touch) != _touches.end())
|
||||
if (std::find(_touches.begin(), _touches.end(), touch) == _touches.end())
|
||||
{
|
||||
_touches.push_back(touch);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue