mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-10-22 23:49:52 +02:00
fix: Multipoint arrow opposite point movement
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user