Reduce answer result delay from 850ms to 120ms for near-instant feedback
This commit is contained in:
1 parent
1649b85934
commit
43f7e6ef1c
1 file changed
+1
-1
@@ -704,7 +704,7 @@ class Game {
|
|||||||
this.state.score+=this.state.streak>=5?200:this.state.streak>=3?150:100;
|
this.state.score+=this.state.streak>=5?200:this.state.streak>=3?150:100;
|
||||||
} else { this.state.streak=0; this.state.wrong++; }
|
} else { this.state.streak=0; this.state.wrong++; }
|
||||||
|
|
||||||
setTimeout(()=>this.showResult(correct,q),850);
|
setTimeout(()=>this.showResult(correct,q),120);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── RESULT ───────────────────────────────────────────── */
|
/* ── RESULT ───────────────────────────────────────────── */
|
||||||
|
|||||||
Reference in new issue
Block a user