소스 검색

Hide viewport elements when releasing it

customisations
alemart 11 달 전
부모
커밋
4e623ef78d
2개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 2
    0
      src/core/hud.ts
  2. 3
    0
      src/core/viewport.ts

+ 2
- 0
src/core/hud.ts 파일 보기

@@ -110,6 +110,8 @@ export class HUD
110 110
      */
111 111
     _release(): void
112 112
     {
113
+        this.visible = false;
114
+
113 115
         if(this._isOwnContainer) {
114 116
             this._isOwnContainer = false;
115 117
             this._container.remove();

+ 3
- 0
src/core/viewport.ts 파일 보기

@@ -250,6 +250,9 @@ class ViewportCanvases
250 250
      */
251 251
     release(): void
252 252
     {
253
+        this._backgroundCanvas.hidden = true;
254
+        this._foregroundCanvas.hidden = true;
255
+
253 256
         this._backgroundCanvas.style.cssText = '';
254 257
         this._foregroundCanvas.style.cssText = this._originalCSSTextOfForegroundCanvas;
255 258
     }

Loading…
취소
저장