Skip to content

Commit

Permalink
Merge pull request #15 from hesselbom/fix-scroll-issue
Browse files Browse the repository at this point in the history
Fix issue with maintaining scrolled position when other clients update document
  • Loading branch information
dmonad authored May 11, 2021
2 parents cdf74be + bb52fa5 commit d4325f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/y-codemirror.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const typeObserver = (binding, event) => {
head = anchor
anchor = tmp
}
cm.setSelection(cm.posFromIndex(anchor), cm.posFromIndex(head))
cm.setSelection(cm.posFromIndex(anchor), cm.posFromIndex(head), { scroll: false })
})
}

Expand Down

0 comments on commit d4325f5

Please sign in to comment.