fix: 布局闪烁

This commit is contained in:
AncTe committed 2023-11-07 19:25:59 +08:00
1 parent 8fcc570e5d
commit 0ed7e03f40
5 files changed
+18 -12

No files matched your search

-2
View File
@@ -179,8 +179,6 @@ export class UiController extends Focus<IndexedGameUi> {
v.ui.emit('close');
});
if (this.stack.length === 0) {
console.log(this.hold);
if (!this.hold) this.emit('end');
this.hold = false;
}
+3 -1
View File
@@ -56,7 +56,9 @@ hook.once('mounted', () => {
});
mainUi.on('end', () => {
ui.style.display = 'none';
core.closePanel();
try {
core.closePanel();
} catch {}
});
fixedUi.on('start', () => {
fixed.style.display = 'block';