y-quill icon indicating copy to clipboard operation
y-quill copied to clipboard

weird collaborator's cursor behavior

Open crapthings opened this issue 6 years ago • 1 comments

https://streamable.com/hy8xf

its not sync

and the other user's cursor always on start of text

crapthings avatar Sep 03 '19 08:09 crapthings

https://github.com/y-js/y-quill/blob/master/src/y-quill.js#L42

image

const anchor = Y.createAbsolutePositionFromRelativePosition(Y.createRelativePositionFromJSON(aw.cursor.anchor), doc)
const head = Y.createAbsolutePositionFromRelativePosition(Y.createRelativePositionFromJSON(aw.cursor.head), doc)

collaborator's cursor index is always 0

crapthings avatar Sep 04 '19 03:09 crapthings