Skip to content

Commit 2391bc5

Browse files
committed
fix(test config): punctuation and numbers disappearing when selected language doesnt have any quotes
closes monkeytypegame#6451
1 parent 9a4ac30 commit 2391bc5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

frontend/src/ts/test/test-config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ export async function update(previous: Mode, current: Mode): Promise<void> {
111111
);
112112

113113
puncAndNumEl
114+
.stop(true, false)
114115
.css({
115116
width: puncAndNumVisible[previous] ? width : 0,
116117
opacity: puncAndNumVisible[previous] ? 1 : 0,
@@ -162,6 +163,7 @@ export async function update(previous: Mode, current: Mode): Promise<void> {
162163
const widthStep = widthDifference / 2;
163164

164165
previousEl
166+
.stop(true, false)
165167
.css({
166168
opacity: 1,
167169
width: previousWidth,
@@ -186,6 +188,7 @@ export async function update(previous: Mode, current: Mode): Promise<void> {
186188
width: previousWidth + widthStep,
187189
})
188190
.removeClass("hidden")
191+
.stop(true, false)
189192
.animate(
190193
{
191194
opacity: 1,

0 commit comments

Comments
 (0)