Fix multi touch disable is invalid when touch event on SystemEvent. (#6551)

This commit is contained in:
cary
2020-04-15 17:41:55 +08:00
committed by GitHub
parent fe46a6c973
commit 217989fd33
@@ -947,8 +947,8 @@ class EventManager {
// const EventTouch = cc.Event.EventTouch;
if (getCode === EventTouch.BEGAN) {
if (!cc.macro.ENABLE_MULTI_TOUCH && eventManager._currentTouch) {
let node = eventManager._currentTouchListener!._node;
if (node && node.activeInHierarchy) {
const node = eventManager._currentTouchListener!._node;
if (!node || node.activeInHierarchy) {
return false;
}
}