We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2de8317 commit 53d3317Copy full SHA for 53d3317
1 file changed
public/js/script.js
@@ -357,11 +357,10 @@ function updateCaretPosition() {
357
358
if (config.smoothCaret) {
359
duration = 100;
360
- }
361
-
362
- if (Math.round(caret.position().top) != Math.round(newTop)) {
363
- caret.css("top", newTop);
364
- duration = 10;
+ if (Math.round(caret.position().top) != Math.round(newTop)) {
+ caret.css("top", newTop);
+ duration = 10;
+ }
365
}
366
367
caret.stop(true, true).animate({
0 commit comments