Do not apply the jumping logic to elbow arrows for new elements
This commit is contained in:
parent
77d691e397
commit
0dd76db5f0
@ -7818,7 +7818,8 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
true,
|
true,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (hoveredElement) {
|
if (!isElbowArrow(element) && hoveredElement) {
|
||||||
|
// We're hijacking the start binding to transport the hovered start element
|
||||||
mutateElement(element, this.scene.getNonDeletedElementsMap(), {
|
mutateElement(element, this.scene.getNonDeletedElementsMap(), {
|
||||||
startBinding: {
|
startBinding: {
|
||||||
elementId: hoveredElement.id,
|
elementId: hoveredElement.id,
|
||||||
@ -8771,7 +8772,7 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
{
|
{
|
||||||
x: firstPointX,
|
x: firstPointX,
|
||||||
y: firstPointY,
|
y: firstPointY,
|
||||||
points: [points[0], pointFrom<LocalPoint>(dx, dy)],
|
points: [...points, pointFrom<LocalPoint>(dx, dy)],
|
||||||
},
|
},
|
||||||
{ informMutation: false, isDragging: false },
|
{ informMutation: false, isDragging: false },
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user