feat: support to not render remote cursor & username (#7130)

This commit is contained in:
David Luzar 2024-03-18 10:41:06 +01:00 committed by GitHub
parent 068895db0e
commit 15bfa626b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 36 additions and 13 deletions

View file

@ -86,7 +86,7 @@ const InteractiveCanvas = (props: InteractiveCanvasProps) => {
remoteSelectedElementIds.get(id)!.push(socketId);
}
}
if (!user.pointer) {
if (!user.pointer || user.pointer.renderCursor === false) {
return;
}
if (user.username) {