Skip to content

Commit 65b91e0

Browse files
committed
Update to handle on view have smaller scrollHeight than editor's shouldn't syncScrollToView after changes
1 parent 3454819 commit 65b91e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2781,7 +2781,7 @@ editor.on('changes', function (cm, changes) {
27812781
windowResize();
27822782
}
27832783
checkEditorScrollbar();
2784-
if (editorHasFocus()) {
2784+
if (ui.area.codemirrorScroll[0].scrollHeight > ui.area.view[0].scrollHeight && editorHasFocus()) {
27852785
postUpdateEvent = function () {
27862786
syncScrollToView();
27872787
postUpdateEvent = null;

0 commit comments

Comments
 (0)