Browse Source

Revert "fix: hovered or selected shape should have higher zindex"

This reverts commit 0ea444c545b053932ef912cead0cedfe8efc1076.
Peng Xiao 2 years ago
parent
commit
d63afd3a04
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tldraw/packages/react/src/components/Canvas/Canvas.tsx

+ 1 - 1
tldraw/packages/react/src/components/Canvas/Canvas.tsx

@@ -138,7 +138,7 @@ export const Canvas = observer(function Renderer<S extends TLReactShape>({
                 isSelected={selectedShapesSet.has(shape)}
                 isErasing={erasingShapesSet.has(shape)}
                 meta={meta}
-                zIndex={selectedOrHooveredShape === shape ? 10000 : 1000 + i}
+                zIndex={1000 + i}
                 onEditingEnd={onEditingEnd}
               />
             ))}