From ef5524be91758dcb5b5d54adeb893e180c4b0a29 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Fri, 14 Oct 2016 00:25:08 +0800 Subject: Fix sync scroll not handle properly on area resize --- public/js/syncscroll.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/syncscroll.js b/public/js/syncscroll.js index a9cfb5a0..626c790f 100644 --- a/public/js/syncscroll.js +++ b/public/js/syncscroll.js @@ -112,8 +112,8 @@ md.use(markdownitContainer, 'danger', { render: renderContainer }); // FIXME: expose syncscroll to window window.syncscroll = true; -var preventSyncScrollToEdit = false; -var preventSyncScrollToView = false; +window.preventSyncScrollToEdit = false; +window.preventSyncScrollToView = false; var editScrollThrottle = 5; var viewScrollThrottle = 5; -- cgit v1.2.3