aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.ts
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2022-07-16 14:39:39 +0200
committerstonedDiscord <Tukz@gmx.de>2022-07-16 14:39:39 +0200
commitb60b656fceee55f689de2bdb30a86b7fd42e6810 (patch)
tree796945bfdd3eb80361664a9e15f6e3cf76a03f43 /webAO/client.ts
parentf3359b60bde9014e3ee56daa3d4104d61d8ee149 (diff)
something weird was going on with pantilt, creating lag. removed onload
Diffstat (limited to 'webAO/client.ts')
-rw-r--r--webAO/client.ts13
1 files changed, 3 insertions, 10 deletions
diff --git a/webAO/client.ts b/webAO/client.ts
index 6c56950..246d496 100644
--- a/webAO/client.ts
+++ b/webAO/client.ts
@@ -2864,22 +2864,15 @@ window.iniedit = iniedit;
*/
export async function switchPanTilt() {
const fullview = document.getElementById('client_fullview');
- const fullbg = <HTMLImageElement>document.getElementById('client_court');
const checkbox = <HTMLInputElement>document.getElementById('client_pantilt');
- if (fullbg.src = transparentPng) {
- checkbox.checked = false;
- fullbg.style.display = 'none';
- } else {
- checkbox.checked = true;
- fullbg.style.display = '';
- }
-
if (checkbox.checked) {
fullview.style.transition = '0.5s ease-in-out';
} else {
fullview.style.transition = 'none';
}
+
+ return
}
window.switchPanTilt = switchPanTilt;
@@ -2887,7 +2880,7 @@ window.switchPanTilt = switchPanTilt;
* Triggered by the change aspect ratio checkbox
*/
export async function switchAspectRatio() {
- const background = document.getElementById('client_background');
+ const background = document.getElementById('client_gamewindow');
const offsetCheck = <HTMLInputElement>document.getElementById('client_hdviewport_offset');
if ((<HTMLInputElement>document.getElementById('client_hdviewport')).checked) {
background.style.paddingBottom = '56.25%';