浏览代码

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

This reverts commit 0ea444c545b053932ef912cead0cedfe8efc1076.
Peng Xiao 2 年之前
父节点
当前提交
d63afd3a04
共有 1 个文件被更改,包括 1 次插入1 次删除
  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}
               />
             ))}