Browse Source

fix: do not toggle isAutoResizing on resizing

Peng Xiao 3 years ago
parent
commit
68dcef4e4f

+ 1 - 0
tldraw/apps/tldraw-logseq/src/lib/shapes/LogseqPortalShape.tsx

@@ -287,6 +287,7 @@ export class LogseqPortalShape extends TLBoxShape<LogseqPortalShapeProps> {
     if (this.props.isAutoResizing) {
       height = this.getAutoResizeHeight() ?? height
     }
+
     return this.update({
       point: [bounds.minX, bounds.minY],
       size: [Math.max(1, bounds.width), Math.max(1, height)],

+ 0 - 3
tldraw/packages/core/src/lib/tools/TLSelectTool/states/ResizingState.ts

@@ -90,9 +90,6 @@ export class ResizingState<
       })
     )
     selectedShapesArray.forEach(shape => {
-      shape.update({
-        isAutoResizing: false
-      })
       shape.onResizeStart?.({ isSingle: this.isSingle })
     })
   }

+ 2 - 2
tldraw/packages/react/src/components/ui/SelectionForeground/SelectionForeground.tsx

@@ -34,8 +34,8 @@ export const SelectionForeground = observer(function SelectionForeground<S exten
         className="tl-bounds-fg"
         width={Math.max(width, 1)}
         height={Math.max(height, 1)}
-        rx={editing ? 4 : 0}
-        ry={editing ? 4 : 0}
+        rx={editing ? 8 : 0}
+        ry={editing ? 8 : 0}
         pointerEvents="none"
       />
       <EdgeHandle