mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-24 20:14:35 -04:00
Fixed editor changes will cause syncScrollToView
This commit is contained in:
parent
85078fd328
commit
3718238277
2 changed files with 5 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue