Skip to content
Snippets Groups Projects
Commit d8f91720 authored by chris's avatar chris
Browse files

update position

parent f44a94d6
No related branches found
No related tags found
1 merge request!548Merge yjs with standard comments
......@@ -81,7 +81,6 @@ export default ({ area, users }) => {
WaxSurface.top +
parseInt(WaxSurfaceMarginTop.slice(0, -2), 10);
} else if (!isFirstRun) {
console.log('else');
// comment is deleted from editing surface
context.setOption({ resolvedComment: id });
context.setOption({
......
......@@ -194,6 +194,15 @@ export default class CommentState {
transaction.doc,
);
map.forEach((annotation, _) => {
if ('from' in annotation && 'to' in annotation) {
annotation.data.pmFrom = transaction.mapping.map(
annotation.data.pmFrom,
);
annotation.data.pmTo = transaction.mapping.map(annotation.data.pmTo);
}
});
if (ystate?.binding && ystate?.binding.mapping) {
this.updateCommentPostions(ystate);
return this;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment