mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 14:44:43 -04:00
Fix on paste or cut text might trigger syncscroll
This commit is contained in:
parent
eb5873a94d
commit
97befb6238
2 changed files with 8 additions and 2 deletions
|
@ -257,7 +257,11 @@ function getEditorLineNoByTop(top) {
|
|||
function syncScrollToView(event, _lineNo) {
|
||||
if (currentMode != modeType.both) return;
|
||||
if (preventSyncScroll) {
|
||||
preventSyncScroll = false;
|
||||
if (typeof preventSyncScroll === 'number') {
|
||||
preventSyncScroll--;
|
||||
} else {
|
||||
preventSyncScroll = false;
|
||||
}
|
||||
return;
|
||||
}
|
||||
var lineNo, posTo;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue