mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-30 11:57:35 +08:00
fix: show all lines causing timed tests to not scroll
This commit is contained in:
parent
d6d062a771
commit
088ca5dc0d
1 changed files with 8 additions and 1 deletions
|
|
@ -254,7 +254,14 @@ export function updateActiveElement(
|
|||
void scrollTape();
|
||||
}
|
||||
|
||||
if (!Config.showAllLines && previousActiveWordTop !== null) {
|
||||
if (previousActiveWordTop === null) return;
|
||||
|
||||
const isTimedTest =
|
||||
Config.mode === "time" ||
|
||||
(Config.mode === "custom" && CustomText.getLimitMode() === "time") ||
|
||||
(Config.mode === "custom" && CustomText.getLimitValue() === 0);
|
||||
|
||||
if (isTimedTest || !Config.showAllLines) {
|
||||
const newActiveWordTop = newActiveWord.offsetTop;
|
||||
if (newActiveWordTop > previousActiveWordTop) {
|
||||
void lineJump(previousActiveWordTop);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue