mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
rebind arrow on rotation (#2096)
This commit is contained in:
parent
0e28177ccc
commit
26ef235019
4 changed files with 101 additions and 42 deletions
|
@ -143,7 +143,6 @@ import {
|
|||
isLinearElementType,
|
||||
isBindingElement,
|
||||
isBindingElementType,
|
||||
isBindableElement,
|
||||
} from "../element/typeChecks";
|
||||
import { actionFinalize, actionDeleteSelected } from "../actions";
|
||||
import { loadLibrary } from "../data/localStorage";
|
||||
|
@ -168,7 +167,6 @@ import {
|
|||
bindOrUnbindSelectedElements,
|
||||
unbindLinearElements,
|
||||
fixBindingsAfterDuplication,
|
||||
maybeBindBindableElement,
|
||||
getElligibleElementForBindingElementAtCoors,
|
||||
fixBindingsAfterDeletion,
|
||||
isLinearElementSimpleAndAlreadyBound,
|
||||
|
@ -2946,6 +2944,7 @@ class App extends React.Component<ExcalidrawProps, AppState> {
|
|||
)
|
||||
) {
|
||||
this.maybeSuggestBindingForAll(selectedElements);
|
||||
bindOrUnbindSelectedElements(selectedElements);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -3339,11 +3338,10 @@ class App extends React.Component<ExcalidrawProps, AppState> {
|
|||
getNormalizedDimensions(draggingElement),
|
||||
);
|
||||
|
||||
if (
|
||||
isBindingEnabled(this.state) &&
|
||||
isBindableElement(draggingElement)
|
||||
) {
|
||||
maybeBindBindableElement(draggingElement);
|
||||
if (isBindingEnabled(this.state)) {
|
||||
bindOrUnbindSelectedElements(
|
||||
getSelectedElements(this.scene.getElements(), this.state),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue