Binding gap disabled for elbow arrows

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
Mark Tolmacs 2024-07-15 20:36:34 +02:00
parent f3e2e78f90
commit f2b6de6c24
No known key found for this signature in database
1 changed files with 4 additions and 3 deletions

View File

@ -5277,14 +5277,14 @@ class App extends React.Component<AppProps, AppState> {
if (isBindingElementType(this.state.activeTool.type)) {
// Hovering with a selected tool or creating new linear element via click
// and point
const { draggingElement } = this.state;
const { draggingElement, activeTool, currentItemElbowArrow } = this.state;
if (isBindingElement(draggingElement, false)) {
this.maybeSuggestBindingsForLinearElementAtCoords(
draggingElement,
[scenePointer],
this.state.startBoundElement,
);
} else {
} else if (activeTool.type !== "arrow" || !currentItemElbowArrow) {
this.maybeSuggestBindingAtCursor(scenePointer);
}
}
@ -9204,7 +9204,8 @@ class App extends React.Component<AppProps, AppState> {
linearElement,
oppositeBindingBoundElement?.id,
hoveredBindableElement,
)
) &&
!isElbowArrow(linearElement)
) {
acc.push(hoveredBindableElement);
}