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