[fix] Don't make arrows shapes to arrows (#1793)

This PR turns off snapping between shapes and arrows.

### Change Type

- [x] `patch` 

### Test Plan

1. Drag a shape while snapping
2. The shape should not snap to the position of arrows
This commit is contained in:
Steve Ruiz 2023-08-03 16:22:40 +01:00 committed by GitHub
parent 4191e23a56
commit c7ae756c0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,7 +61,7 @@ export class ArrowShapeUtil extends ShapeUtil<TLArrowShape> {
override canEdit = () => true
override canBind = () => false
override canSnap = () => true
override canSnap = () => false
override hideResizeHandles: TLShapeUtilFlag<TLArrowShape> = () => true
override hideRotateHandle: TLShapeUtilFlag<TLArrowShape> = () => true
override hideSelectionBoundsBg: TLShapeUtilFlag<TLArrowShape> = () => true