From 0a4cf6c7133b4187f308ce2db301034b4d2603a0 Mon Sep 17 00:00:00 2001 From: Jack Date: Fri, 3 Jul 2020 00:57:20 +0100 Subject: [PATCH] fixed smooth caret not working --- public/js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/script.js b/public/js/script.js index 2ce35f57b..6c3ddb8c4 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -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; }