forked from EXT/VR180-Web-Player
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user