1
0

Loop and other fixes
All checks were successful
Test / test (push) Successful in 9m37s

This commit is contained in:
Aiden
2026-06-10 16:17:08 +10:00
parent 857c9ac980
commit 707cad3719
13 changed files with 342 additions and 51 deletions

View File

@@ -29,6 +29,14 @@ export class VrPanelVisibility {
}
show(): void {
this.showWithAutoHide(true);
}
showPersistent(): void {
this.showWithAutoHide(false);
}
private showWithAutoHide(shouldAutoHide: boolean): void {
if (this.panel) this.panel.group.visible = true;
this.clearHideTimeout();
@@ -37,7 +45,9 @@ export class VrPanelVisibility {
this.startFade();
}
this.hideTimeout = window.setTimeout(() => this.hide(), AUTO_HIDE_DELAY_MS);
if (shouldAutoHide) {
this.hideTimeout = window.setTimeout(() => this.hide(), AUTO_HIDE_DELAY_MS);
}
}
hide(): void {