fixed incorrect caret animation being applied

closes #4381
This commit is contained in:
Miodec 2023-06-16 09:51:16 +02:00
parent 6e2887c9b1
commit 9fd2bc87f5

View file

@ -17,7 +17,7 @@ export function stopAnimation(): void {
export function startAnimation(): void {
if (caretAnimating === false) {
if (Config.smoothCaret && !SlowTimer.get()) {
if (Config.smoothCaret !== "off" && !SlowTimer.get()) {
caret.css("animation-name", "caretFlashSmooth");
} else {
caret.css("animation-name", "caretFlashHard");