mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
[bug] Fixed a crash of multiple finger operations (#1433)
This commit is contained in:
committed by
pandamicro
parent
7e8cc515ab
commit
4e206fd656
@@ -97,7 +97,7 @@ void EventDispatcher::dispatchTouchEvent(const struct TouchEvent& touchEvent)
|
||||
|
||||
_jsTouchObjArray->setProperty("length", se::Value(touchEvent.touches.size()));
|
||||
|
||||
if (_jsTouchObjPool.size() < touchEvent.touches.size())
|
||||
while (_jsTouchObjPool.size() < touchEvent.touches.size())
|
||||
{
|
||||
se::Object* touchObj = se::Object::createPlainObject();
|
||||
touchObj->root();
|
||||
|
||||
Reference in New Issue
Block a user