mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-16 03:54:31 +08:00
perf: Comment 元素不参与排序与渲染
This commit is contained in:
1 parent
0b2db0270c
commit
4c898a7836
1 file changed
+3
-3
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user