mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-14 15:26:19 -04:00
Fix elbow arrow
This commit is contained in:
parent
9111fda080
commit
027a74acfc
@ -474,7 +474,14 @@ export const getBindingStrategyForDraggingBindingElementEndpoints = (
|
||||
appState.zoom,
|
||||
);
|
||||
|
||||
return {
|
||||
return isElbowArrow(arrow)
|
||||
? {
|
||||
start: hovered
|
||||
? { element: hovered, mode: "orbit" }
|
||||
: { mode: undefined },
|
||||
end: { mode: undefined },
|
||||
}
|
||||
: {
|
||||
start: hovered
|
||||
? hit
|
||||
? { element: hovered, mode: "inside" }
|
||||
|
@ -8077,7 +8077,7 @@ class App extends React.Component<AppProps, AppState> {
|
||||
}
|
||||
|
||||
this.scene.mutateElement(element, {
|
||||
points: [...element.points, pointFrom<LocalPoint>(0, 0)],
|
||||
points: [pointFrom<LocalPoint>(0, 0), pointFrom<LocalPoint>(0, 0)],
|
||||
});
|
||||
this.scene.insertElement(element);
|
||||
if (isBindingElement(element)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user