mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-04-11 15:47:06 +08:00
perf: Comment 元素不参与排序与渲染
This commit is contained in:
parent
0b2db0270c
commit
4c898a7836
@ -101,9 +101,9 @@ export class Container<E extends EContainerEvent = EContainerEvent>
|
||||
}
|
||||
|
||||
private sortChildren() {
|
||||
this.sortedChildren = [...this.children].sort(
|
||||
(a, b) => a.zIndex - b.zIndex
|
||||
);
|
||||
this.sortedChildren = [...this.children]
|
||||
.filter(v => !v.isComment)
|
||||
.sort((a, b) => a.zIndex - b.zIndex);
|
||||
this.update();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user