mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
Fix multi touch disable is invalid when touch event on SystemEvent. (#6551)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user