mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-16 04:14:28 +08:00
fixed smooth caret not working
This commit is contained in:
parent
4d4bb4500f
commit
0a4cf6c713
1 changed files with 1 additions and 1 deletions
|
|
@ -561,7 +561,7 @@ function updateCaretPosition() {
|
|||
|
||||
if (config.smoothCaret) {
|
||||
duration = 100;
|
||||
if (Math.round(caret.offsetTop) != Math.round(newTop)) {
|
||||
if (Math.round(caret[0].offsetTop) != Math.round(newTop)) {
|
||||
caret.css("top", newTop);
|
||||
duration = 10;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue