Skip to content

Commit

Permalink
Update node-event-processor.ts
Browse files Browse the repository at this point in the history
无效代码,上面 if 已经过滤了条件
  • Loading branch information
zhangyuantao authored Sep 20, 2024
1 parent 486c562 commit afdbd40
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cocos/scene-graph/node-event-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
}
Expand Down

0 comments on commit afdbd40

Please sign in to comment.