Skip to content

Collaboration caret scrolls other users cursor into view #7302

@Encoded0

Description

@Encoded0

Affected Packages

@tiptap/extension-collaboration,@tiptap/extension-collaboration-caret,@tiptap/react

Version(s)

3.11.0

Bug Description

Users A and B are collaborating on the same document. Cursor position of user A is at the bottom of a scrollable editor, so that the top is out of view. If User B starts making selections at the top of the editor, User A's view unexpectedly scrolls upwards towards User B's cursor, rather than maintaining its position.

Browser Used

Chrome

Code Example URL

https://codesandbox.io/p/sandbox/zealous-herschel-wghdc4

Expected Behavior

Editor scroll does not move when other users are moving cursor position

Additional Context (Optional)

I encountered this bug in my app which has many more editor extensions and uses Hocuspocus. I thought it was a conflict between CollaborationCaret and BubbleMenu since removing one or the other seemed to fixed the issue. Created the codesandbox to narrow down the problem and was able to replicate it without BubbleMenu.

Image

Dependency Updates

  • Yes, I've updated all my dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Open SourceThe issue or pull reuqest is related to the open source packages of Tiptap.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions