Skip to content

Commit

Permalink
fix: resort event listeners after updating sibling index on native pl…
Browse files Browse the repository at this point in the history
…atform (#17537)
  • Loading branch information
LiuTianjie authored Aug 14, 2024
1 parent 53ac71d commit 4b704fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cocos/scene-graph/node.jsb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1351,6 +1351,7 @@ nodeProto._onSiblingIndexChanged = function (index) {
} else {
siblings.push(this);
}
this._eventProcessor.onUpdatingSiblingIndex();
}
}

Expand Down Expand Up @@ -1402,4 +1403,4 @@ patch_cc_Node({
Quat,
MobilityMode,
Layers
});
});

0 comments on commit 4b704fa

Please sign in to comment.