From 0b3a5e7cc4d6ba5bcc5105f694a59f721ee06fc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rk=20Tolm=C3=A1cs?= Date: Tue, 24 Feb 2026 13:32:44 +0100 Subject: [PATCH] fix: Multi-point arrow bound point update (#10831) Signed-off-by: Mark Tolmacs --- packages/element/src/binding.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/element/src/binding.ts b/packages/element/src/binding.ts index ae84623c3b..bf1eeb63c7 100644 --- a/packages/element/src/binding.ts +++ b/packages/element/src/binding.ts @@ -1776,10 +1776,13 @@ export const updateBoundPoint = ( ); const otherArrowPoint = LinearElementEditor.getPointAtIndexGlobalCoordinates( arrow, - startOrEnd === "startBinding" ? -1 : 0, + startOrEnd === "startBinding" ? 1 : -2, elementsMap, ); - const otherFocusPointOrArrowPoint = otherFocusPoint || otherArrowPoint; + const otherFocusPointOrArrowPoint = + arrow.points.length === 2 + ? otherFocusPoint || otherArrowPoint + : otherArrowPoint; const intersector = otherFocusPointOrArrowPoint && lineSegment(focusPoint, otherFocusPointOrArrowPoint);