Pārlūkot izejas kodu

Fix

customisations
alemart 5 mēnešus atpakaļ
vecāks
revīzija
583eb9decd

+ 7
- 0
src/core/hud.ts Parādīt failu

136
         this.#fullscreenButton.init(parent, wantFullscreenButton);
136
         this.#fullscreenButton.init(parent, wantFullscreenButton);
137
         this.#supportWidget.init(parent);
137
         this.#supportWidget.init(parent);
138
 
138
 
139
+        for(const element of parent.children as any as HTMLElement[]) {
140
+            if(element.style.getPropertyValue('pointer-events') == '')
141
+                element.style.pointerEvents = 'auto'; // accept pointer input
142
+            if(element.style.getPropertyValue('z-index') == '')
143
+                element.style.zIndex = '1000000';
144
+        }
145
+
139
         const container = this._container;
146
         const container = this._container;
140
         container.style.position = 'absolute';
147
         container.style.position = 'absolute';
141
         container.style.left = container.style.top = '0px';
148
         container.style.left = container.style.top = '0px';

+ 0
- 1
src/ui/fullscreen-button.ts Parādīt failu

98
         button.style.height = BUTTON_SIZE + 'px';
98
         button.style.height = BUTTON_SIZE + 'px';
99
 
99
 
100
         button.style.opacity = '0.5';
100
         button.style.opacity = '0.5';
101
-        button.style.zIndex = '1000000';
102
         button.style.cursor = 'pointer';
101
         button.style.cursor = 'pointer';
103
         button.style.outline = 'none';
102
         button.style.outline = 'none';
104
         (button.style as any)['-webkit-tap-highlight-color'] = 'transparent';
103
         (button.style as any)['-webkit-tap-highlight-color'] = 'transparent';

+ 0
- 1
src/ui/stats-panel.ts Parādīt failu

184
 
184
 
185
         container.style.position = 'absolute';
185
         container.style.position = 'absolute';
186
         container.style.left = container.style.top = '0px';
186
         container.style.left = container.style.top = '0px';
187
-        container.style.zIndex = '1000000';
188
         container.style.padding = '0px';
187
         container.style.padding = '0px';
189
 
188
 
190
         container.appendChild(this._createTitle());
189
         container.appendChild(this._createTitle());

+ 0
- 1
src/ui/support-widget.ts Parādīt failu

86
         button.style.transform = 'translateX(50%)';
86
         button.style.transform = 'translateX(50%)';
87
 
87
 
88
         button.style.opacity = '0.75';
88
         button.style.opacity = '0.75';
89
-        button.style.zIndex = '1000000';
90
         button.style.cursor = 'pointer';
89
         button.style.cursor = 'pointer';
91
         button.style.outline = 'none';
90
         button.style.outline = 'none';
92
         (button.style as any)['-webkit-tap-highlight-color'] = 'transparent';
91
         (button.style as any)['-webkit-tap-highlight-color'] = 'transparent';

Notiek ielāde…
Atcelt
Saglabāt