From afdbd40c5a9d832bf6dacd6a3e4bd682f14418ef Mon Sep 17 00:00:00 2001 From: ThinkDifferent <735162787@qq.com> Date: Fri, 20 Sep 2024 12:29:34 +0800 Subject: [PATCH] Update node-event-processor.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 无效代码,上面 if 已经过滤了条件 --- cocos/scene-graph/node-event-processor.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cocos/scene-graph/node-event-processor.ts b/cocos/scene-graph/node-event-processor.ts index da4c3875535..f7bd6a77ae0 100644 --- a/cocos/scene-graph/node-event-processor.ts +++ b/cocos/scene-graph/node-event-processor.ts @@ -302,11 +302,6 @@ export class NodeEventProcessor { event.currentTarget = target; // fire event target.eventProcessor.bubblingTarget.emit(event.type, event); - // check if propagation stopped - if (event.propagationStopped) { - _arrayPool.free(cachedArray); - return; - } } } }