aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMiodec <[email protected]>2023-03-07 19:55:01 +0100
committerMiodec <[email protected]>2023-03-07 19:55:01 +0100
commit967d111ab30a0ae4b71f7028951020398f296b73 (patch)
tree7fb0f99faccd38a5b363c7ed948bae00dc1e8577
parent8f052215079ee281434bda91b179ce1cfe491e08 (diff)
downloadmonkeytype-967d111ab30a0ae4b71f7028951020398f296b73.tar.gz
monkeytype-967d111ab30a0ae4b71f7028951020398f296b73.zip
added sleep back in (turns out it was needed)
-rw-r--r--frontend/src/ts/test/test-ui.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/frontend/src/ts/test/test-ui.ts b/frontend/src/ts/test/test-ui.ts
index a345c60be..f5cd6a25e 100644
--- a/frontend/src/ts/test/test-ui.ts
+++ b/frontend/src/ts/test/test-ui.ts
@@ -49,7 +49,9 @@ ConfigEvent.subscribe((eventKey, eventValue) => {
) {
debouncedZipfCheck();
}
- if (eventKey === "fontSize") updateWordsHeight(true);
+ if (eventKey === "fontSize") {
+ Misc.sleep(0).then(() => updateWordsHeight(true));
+ }
if (eventValue === undefined || typeof eventValue !== "boolean") return;
if (eventKey === "flipTestColors") flipColors(eventValue);