mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-15 02:04:21 +01:00
fix: Arrow start inside binding switch
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
@@ -6284,6 +6284,18 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
},
|
},
|
||||||
{ informMutation: false, isDragging: false },
|
{ informMutation: false, isDragging: false },
|
||||||
);
|
);
|
||||||
|
if (this.state.selectedLinearElement?.pointerDownState) {
|
||||||
|
this.setState({
|
||||||
|
selectedLinearElement: {
|
||||||
|
...this.state.selectedLinearElement,
|
||||||
|
selectedPointsIndices: [multiElement.points.length - 1],
|
||||||
|
pointerDownState: {
|
||||||
|
...this.state.selectedLinearElement.pointerDownState,
|
||||||
|
lastClickedPoint: multiElement.points.length - 1,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
setCursor(this.interactiveCanvas, CURSOR_TYPE.POINTER);
|
setCursor(this.interactiveCanvas, CURSOR_TYPE.POINTER);
|
||||||
// in this branch, we're inside the commit zone, and no uncommitted
|
// in this branch, we're inside the commit zone, and no uncommitted
|
||||||
@@ -8374,13 +8386,14 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
),
|
),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
nextSelectedElementIds = makeNextSelectedElementIds(
|
|
||||||
{ [element.id]: true },
|
|
||||||
prevState,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nextSelectedElementIds = makeNextSelectedElementIds(
|
||||||
|
{ [element.id]: true },
|
||||||
|
prevState,
|
||||||
|
);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...prevState,
|
...prevState,
|
||||||
bindMode: "orbit",
|
bindMode: "orbit",
|
||||||
@@ -8760,6 +8773,14 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
this.handleDelayedBindModeChange(element, hoveredElement);
|
this.handleDelayedBindModeChange(element, hoveredElement);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (
|
||||||
|
event.altKey &&
|
||||||
|
!this.state.selectedLinearElement?.pointerDownState
|
||||||
|
?.arrowStartIsInside
|
||||||
|
) {
|
||||||
|
this.handleSkipBindMode();
|
||||||
|
}
|
||||||
|
|
||||||
const newState = LinearElementEditor.handlePointDragging(
|
const newState = LinearElementEditor.handlePointDragging(
|
||||||
event,
|
event,
|
||||||
this,
|
this,
|
||||||
|
|||||||
Reference in New Issue
Block a user