mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-03 04:19:06 +08:00
smoothing out the blur
This commit is contained in:
parent
e488014f1a
commit
5b150180a2
1 changed files with 2 additions and 2 deletions
|
@ -3735,7 +3735,7 @@ let outOfFocusTimeout;
|
|||
|
||||
$("#wordsInput").on("focus", (event) => {
|
||||
if (!resultVisible) {
|
||||
$("#words").removeClass("blurred");
|
||||
$("#words").css("transition","none").removeClass("blurred");
|
||||
$(".outOfFocusWarning").addClass('hidden');
|
||||
clearTimeout(outOfFocusTimeout);
|
||||
}
|
||||
|
@ -3745,7 +3745,7 @@ $("#wordsInput").on("focus", (event) => {
|
|||
$("#wordsInput").on("focusout", (event) => {
|
||||
if (!resultVisible) {
|
||||
outOfFocusTimeout = setTimeout(() => {
|
||||
$("#words").addClass('blurred');
|
||||
$("#words").css("transition","0.25s").addClass('blurred');
|
||||
$(".outOfFocusWarning").removeClass('hidden');
|
||||
}, 1000)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue