[fix] collaborator render order (#1213)

This PR fixes a bug where collaborator cursors would appear below other
overlay content, such as selection boxes.
This commit is contained in:
Steve Ruiz 2023-05-03 09:29:04 +01:00 committed by GitHub
parent 14b1f24eb2
commit 9fd0803428
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -125,7 +125,6 @@ export const Canvas = track(function Canvas({
{SvgDefs && <SvgDefs />}
</defs>
<g ref={rSvgLayer}>
<LiveCollaborators />
<ScribbleWrapper />
<BrushWrapper />
<ZoomBrushWrapper />
@ -133,8 +132,9 @@ export const Canvas = track(function Canvas({
<HoveredShapeIndicator />
<SelectionFg />
<HintedShapeIndicator />
<HandlesWrapper />
<SnapLinesWrapper />
<HandlesWrapper />
<LiveCollaborators />
</g>
</svg>
</div>