fix: Box selection of arrows (#10451)

This commit is contained in:
Márk Tolmács
2025-12-03 12:47:30 +01:00
committed by GitHub
parent d080833f4d
commit 8d18078f5c
8 changed files with 81 additions and 65 deletions
+2 -5
View File
@@ -11463,13 +11463,10 @@ class App extends React.Component<AppProps, AppState> {
): void => {
const selectionElement = this.state.selectionElement;
const pointerCoords = pointerDownState.lastCoords;
const selectedElements = this.scene.getSelectedElements(this.state);
const onlyBindingElementSelected =
selectedElements?.length === 1 && isBindingElement(selectedElements[0]);
if (
selectionElement &&
this.state.activeTool.type !== "eraser" &&
!onlyBindingElementSelected
pointerDownState.boxSelection.hasOccurred &&
this.state.activeTool.type !== "eraser"
) {
dragNewElement({
newElement: selectionElement,