fixed smooth caret not working

This commit is contained in:
Jack 2020-07-03 00:57:20 +01:00
parent 4d4bb4500f
commit 0a4cf6c713

View file

@ -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;
}