From 871e7a3fc509a2bd3daa7db532329fde3b57583b Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 11 Oct 2020 12:32:27 +0300 Subject: [PATCH] trigger refresh sooner by one viewport in advance --- edit/sections-editor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/edit/sections-editor.js b/edit/sections-editor.js index 302d7d03..acffa17a 100644 --- a/edit/sections-editor.js +++ b/edit/sections-editor.js @@ -57,6 +57,8 @@ function createSectionsEditor({style, onTitleChanged}) { xo.unobserve(target); } } + }, { + rootMargin: '100%', }); CodeMirror.defineExtension('refreshOnView', function () { if (xo) {