fix: Multipoint arrow opposite point movement

This commit is contained in:
Mark Tolmacs
2025-09-02 16:39:38 +02:00
parent 4f43399951
commit 62d7740c94
2 changed files with 28 additions and 20 deletions

View File

@@ -2217,11 +2217,19 @@ const pointDraggingUpdates = (
) || nextArrow.points[0]
: nextArrow.points[0];
const endChanged =
pointDistance(
endLocalPoint,
nextArrow.points[nextArrow.points.length - 1],
) !== 0;
const startChanged =
pointDistance(startLocalPoint, nextArrow.points[0]) !== 0;
const indicesSet = new Set(selectedPointsIndices);
if (startBindable) {
if (startBindable && startChanged) {
indicesSet.add(0);
}
if (endBindable) {
if (endBindable && endChanged) {
indicesSet.add(element.points.length - 1);
}
const indices = Array.from(indicesSet);