From bb52e71fa710ebae38a2b4341ca15508deb595d9 Mon Sep 17 00:00:00 2001 From: Jack Date: Thu, 14 May 2020 23:40:29 +0100 Subject: [PATCH] fixed #2 --- public/js/script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/js/script.js b/public/js/script.js index 19de2dfb8..d94ed7c23 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -262,6 +262,7 @@ function startCaretAnimation() { } function updateCaretPosition() { + if ($("#words").hasClass('hidden')) return; let caret = $("#caret"); let activeWord = $("#words .word.active"); let inputLen = currentInput.length;