mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-22 00:06:16 +08:00
fixed caret animating even if set to off
This commit is contained in:
parent
2de831788d
commit
53d33176e3
|
@ -357,11 +357,10 @@ function updateCaretPosition() {
|
|||
|
||||
if (config.smoothCaret) {
|
||||
duration = 100;
|
||||
}
|
||||
|
||||
if (Math.round(caret.position().top) != Math.round(newTop)) {
|
||||
caret.css("top", newTop);
|
||||
duration = 10;
|
||||
if (Math.round(caret.position().top) != Math.round(newTop)) {
|
||||
caret.css("top", newTop);
|
||||
duration = 10;
|
||||
}
|
||||
}
|
||||
|
||||
caret.stop(true, true).animate({
|
||||
|
|
Loading…
Reference in a new issue