mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-12-02 10:34:43 +01:00
@@ -1202,14 +1202,11 @@ export const bindPointToSnapToElementOutline = (
|
||||
customIntersector?: LineSegment<GlobalPoint>,
|
||||
): GlobalPoint => {
|
||||
const elbowed = isElbowArrow(arrowElement);
|
||||
const point =
|
||||
customIntersector && !elbowed
|
||||
? customIntersector[0]
|
||||
: LinearElementEditor.getPointAtIndexGlobalCoordinates(
|
||||
arrowElement,
|
||||
startOrEnd === "start" ? 0 : -1,
|
||||
elementsMap,
|
||||
);
|
||||
const point = LinearElementEditor.getPointAtIndexGlobalCoordinates(
|
||||
arrowElement,
|
||||
startOrEnd === "start" ? 0 : -1,
|
||||
elementsMap,
|
||||
);
|
||||
|
||||
if (arrowElement.points.length < 2) {
|
||||
// New arrow creation, so no snapping
|
||||
|
||||
Reference in New Issue
Block a user