mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Ensure arrows are not draggable from inside (#1620)
This commit is contained in:
parent
c427aa3cce
commit
584e4182a7
2 changed files with 12 additions and 11 deletions
|
@ -23,6 +23,9 @@ const isElementDraggableFromInside = (
|
|||
element: NonDeletedExcalidrawElement,
|
||||
appState: AppState,
|
||||
): boolean => {
|
||||
if (element.type === "arrow") {
|
||||
return false;
|
||||
}
|
||||
const dragFromInside =
|
||||
element.backgroundColor !== "transparent" ||
|
||||
appState.selectedElementIds[element.id];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue