mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-08-30 13:47:12 +02:00
Add free draw mode (#1570)
This commit is contained in:
@@ -26,7 +26,7 @@ function isElementDraggableFromInside(
|
||||
const dragFromInside =
|
||||
element.backgroundColor !== "transparent" ||
|
||||
appState.selectedElementIds[element.id];
|
||||
if (element.type === "line") {
|
||||
if (element.type === "line" || element.type === "draw") {
|
||||
return dragFromInside && isPathALoop(element.points);
|
||||
}
|
||||
return dragFromInside;
|
||||
|
Reference in New Issue
Block a user