diff options
author | Cheng-Han, Wu | 2016-06-21 21:48:02 +0800 |
---|---|---|
committer | Cheng-Han, Wu | 2016-06-21 21:48:02 +0800 |
commit | 65b91e0b66b0d92d990f5fb51a28ed6c0f12e6bf (patch) | |
tree | 3f47b980a6e498268f259623e672a1901786c841 | |
parent | 34548195226a06c4ba98dc272e32198aefbd3eb6 (diff) |
Update to handle on view have smaller scrollHeight than editor's shouldn't syncScrollToView after changes
-rw-r--r-- | public/js/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js index c6ef16c8..b9ab7175 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -2781,7 +2781,7 @@ editor.on('changes', function (cm, changes) { windowResize(); } checkEditorScrollbar(); - if (editorHasFocus()) { + if (ui.area.codemirrorScroll[0].scrollHeight > ui.area.view[0].scrollHeight && editorHasFocus()) { postUpdateEvent = function () { syncScrollToView(); postUpdateEvent = null; |