瀏覽代碼

fix arrows

main
Steve Ruiz 3 年之前
父節點
當前提交
e042ac3061
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      packages/tldraw/src/state/sessions/ArrowSession/ArrowSession.ts

+ 1
- 1
packages/tldraw/src/state/sessions/ArrowSession/ArrowSession.ts 查看文件

@@ -355,7 +355,7 @@ export class ArrowSession extends BaseSession {
355 355
 
356 356
     if (
357 357
       !(currentBindingId || initialBinding) &&
358
-      Vec.dist(currentShape.handles.start.point, currentShape.handles.end.point) > 2
358
+      Vec.dist(currentShape.handles.start.point, currentShape.handles.end.point) < 4
359 359
     ) {
360 360
       return this.cancel()
361 361
     }

Loading…
取消
儲存