summaryrefslogtreecommitdiff
path: root/public/js/index.js
diff options
context:
space:
mode:
authorCheng-Han, Wu2016-04-20 16:16:07 +0800
committerCheng-Han, Wu2016-04-20 16:16:07 +0800
commit37182382771e2194000ba36dadbf89b8f433e3b5 (patch)
tree2926ddf647f6139c80f9090b74061d368fc7209c /public/js/index.js
parent85078fd328d50edeeec188eefd41481d6eb824cb (diff)
Fixed editor changes will cause syncScrollToView
Diffstat (limited to 'public/js/index.js')
-rw-r--r--public/js/index.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 94ccc329..d19cc25a 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -2139,10 +2139,6 @@ editor.on('paste', function() {
});
editor.on('changes', function (cm, changes) {
updateHistory();
- preventSyncScroll = true;
- var scrollInfo = editor.getScrollInfo();
- editor.scrollTo(null, scrollInfo.top - 1);
- editor.scrollTo(null, scrollInfo.top);
var docLength = editor.getValue().length;
//workaround for big documents
var newViewportMargin = 20;