mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-14 17:54:47 +01:00
fix: Multi-point arrow closeness fallback
This commit is contained in:
@@ -1293,6 +1293,7 @@ export const bindPointToSnapToElementOutline = (
|
|||||||
pointFromVector(halfVector, adjacentPoint),
|
pointFromVector(halfVector, adjacentPoint),
|
||||||
pointFromVector(vectorScale(halfVector, -1), adjacentPoint),
|
pointFromVector(vectorScale(halfVector, -1), adjacentPoint),
|
||||||
);
|
);
|
||||||
|
|
||||||
intersection =
|
intersection =
|
||||||
pointDistance(edgePoint, adjacentPoint) < 1
|
pointDistance(edgePoint, adjacentPoint) < 1
|
||||||
? edgePoint
|
? edgePoint
|
||||||
@@ -1583,7 +1584,8 @@ export const updateBoundPoint = (
|
|||||||
!isOverlapping &&
|
!isOverlapping &&
|
||||||
arrow.startBinding &&
|
arrow.startBinding &&
|
||||||
arrow.endBinding &&
|
arrow.endBinding &&
|
||||||
otherBindableElement
|
otherBindableElement &&
|
||||||
|
arrow.points.length === 2
|
||||||
) {
|
) {
|
||||||
const startFocusPoint = getGlobalFixedPointForBindableElement(
|
const startFocusPoint = getGlobalFixedPointForBindableElement(
|
||||||
arrow.startBinding.fixedPoint,
|
arrow.startBinding.fixedPoint,
|
||||||
|
|||||||
Reference in New Issue
Block a user