The collab client comes with scroll synchronization support. When the author of the document joins scroll sync mode and scrolls, anyone else viewing that document can automatically scroll with the author.
To join the scroll sync, you can use the
The scroll sync will only available for document members when the author of the document is already joined scroll sync, otherwise, it will throw an error.
To check if the scroll sync is available for the user, you can use the
You can also subscribe to the scrollSyncStatusChanged event to get notified when the scroll sync becomes available.
To leave the scroll sync, you can use the
When the author of the document leaves scroll sync or disconnect, the other document member in the scroll sync will automatically leave scroll sync.