瀏覽代碼

Tweak

customisations
alemart 7 月之前
父節點
當前提交
56395182cf
共有 1 個檔案被更改,包括 3 行新增4 行删除
  1. 3
    4
      src/sources/pointer-source.ts

+ 3
- 4
src/sources/pointer-source.ts 查看文件

@@ -129,10 +129,9 @@ export class PointerSource implements Source
129 129
             this._viewport.hud.container.style.pointerEvents = 'none';
130 130
 
131 131
             // Make HUD elements accept pointer events
132
-            for(const element of this._viewport.hud.container.children) {
133
-                const el = element as HTMLElement;
134
-                if(el.style.getPropertyValue('pointer-events') == '')
135
-                    el.style.pointerEvents = 'auto';
132
+            for(const element of this._viewport.hud.container.children as any as HTMLElement[]) {
133
+                if(element.style.getPropertyValue('pointer-events') == '')
134
+                    element.style.pointerEvents = 'auto';
136 135
             }
137 136
         }
138 137
     }

Loading…
取消
儲存