Skip to content

Commit

Permalink
fix smooth cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
HauseMasterZ committed Sep 11, 2023
1 parent 27d7407 commit 982ec56
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,6 @@ function checkInput(event) {
}, 1000);
if (startTime === 0) {
startTimer();
if (isSmoothCursorEnabled) {
cursorSpan.style.transition = 'left 0.1s linear, top 0.25s ease-out';
}
}
letterElement = letterElements[currentWordIndex];
letterElementLength = letterElement.length;
Expand Down Expand Up @@ -716,6 +713,7 @@ window.onload = async () => {
inputBox.focus();
});

cursorSpan.style.transition = 'left 0.1s linear, top 0.25s ease-out';
}


0 comments on commit 982ec56

Please sign in to comment.