Do not apply the jumping logic to elbow arrows for new elements

This commit is contained in:
Mark Tolmacs 2025-06-20 21:17:48 +02:00
parent 77d691e397
commit 0dd76db5f0
No known key found for this signature in database

View File

@ -7818,7 +7818,8 @@ class App extends React.Component<AppProps, AppState> {
true,
);
if (hoveredElement) {
if (!isElbowArrow(element) && hoveredElement) {
// We're hijacking the start binding to transport the hovered start element
mutateElement(element, this.scene.getNonDeletedElementsMap(), {
startBinding: {
elementId: hoveredElement.id,
@ -8771,7 +8772,7 @@ class App extends React.Component<AppProps, AppState> {
{
x: firstPointX,
y: firstPointY,
points: [points[0], pointFrom<LocalPoint>(dx, dy)],
points: [...points, pointFrom<LocalPoint>(dx, dy)],
},
{ informMutation: false, isDragging: false },
);