Skip to content

Commit

Permalink
reduce delay when unsetting words left margin
Browse files Browse the repository at this point in the history
  • Loading branch information
NadAlaba committed Mar 5, 2025
1 parent 74b14a1 commit 34bb81d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions frontend/src/ts/test/test-ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,7 @@ ConfigEvent.subscribe((eventKey, eventValue, nosave) => {
}
if (eventKey === "fontSize" && !nosave) {
OutOfFocus.hide();
updateWordsWrapperHeight(true);
updateWordsMargin();
void updateWordsInputPosition(true);
updateWordWrapperClasses();
}
if (
["fontSize", "fontFamily", "blindMode", "hideExtraLetters"].includes(
Expand Down Expand Up @@ -565,9 +563,7 @@ function updateWordsMargin(): void {
if (Config.tapeMode !== "off") {
scrollTape();
} else {
setTimeout(() => {
$("#words").css("margin-left", "unset");
}, 125);
setTimeout(() => $("#words").css("margin-left", "unset"), 0);
}
}

Expand Down

0 comments on commit 34bb81d

Please sign in to comment.