|
@@ -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
|
}
|