mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-09 18:40:08 +02:00
Do not trigger arrow binding for linear elements
This commit is contained in:
@@ -2,6 +2,7 @@ import { pointFrom } from "@excalidraw/math";
|
||||
|
||||
import { bindOrUnbindBindingElement } from "@excalidraw/element/binding";
|
||||
import {
|
||||
isSimpleArrow,
|
||||
isValidPolygon,
|
||||
LinearElementEditor,
|
||||
newElementWith,
|
||||
@@ -83,6 +84,7 @@ export const actionFinalize = register<FormData>({
|
||||
app.scene,
|
||||
);
|
||||
|
||||
if (isSimpleArrow(element)) {
|
||||
const newArrow = !appState.selectedLinearElement?.selectedPointsIndices;
|
||||
|
||||
const selectedPointsIndices = newArrow
|
||||
@@ -105,6 +107,7 @@ export const actionFinalize = register<FormData>({
|
||||
bindOrUnbindBindingElement(element, draggedPoints, scene, appState, {
|
||||
newArrow,
|
||||
});
|
||||
}
|
||||
|
||||
if (linearElementEditor !== appState.selectedLinearElement) {
|
||||
// `handlePointerUp()` updated the linear element instance,
|
||||
|
Reference in New Issue
Block a user