mirror of https://github.com/status-im/codimd.git
Update to handle on view have smaller scrollHeight than editor's shouldn't syncScrollToView after changes
This commit is contained in:
parent
3454819522
commit
65b91e0b66
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue