Browse Source

Tweak

customisations
alemart 7 months ago
parent
commit
56395182cf
1 changed files with 3 additions and 4 deletions
  1. 3
    4
      src/sources/pointer-source.ts

+ 3
- 4
src/sources/pointer-source.ts View File

129
             this._viewport.hud.container.style.pointerEvents = 'none';
129
             this._viewport.hud.container.style.pointerEvents = 'none';
130
 
130
 
131
             // Make HUD elements accept pointer events
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…
Cancel
Save