summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorWu Cheng-Han2016-10-14 00:25:08 +0800
committerWu Cheng-Han2016-10-14 00:25:08 +0800
commitef5524be91758dcb5b5d54adeb893e180c4b0a29 (patch)
tree7c88d7159f04a5e9cffb08a835325565245558e9 /public
parentadb3666d13ba8ff63cba0a395d1bd9819e6ea1ea (diff)
Fix sync scroll not handle properly on area resize
Diffstat (limited to '')
-rw-r--r--public/js/syncscroll.js4
1 files 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;