mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Update linearElementEditor.ts
This commit is contained in:
parent
2b835ebb78
commit
2eab545f27
1 changed files with 2 additions and 5 deletions
|
@ -42,7 +42,7 @@ import {
|
|||
isBindingEnabled,
|
||||
} from "./binding";
|
||||
import { tupleToCoors } from "../utils";
|
||||
import { isBindingElement, isFreeDrawElement } from "./typeChecks";
|
||||
import { isBindingElement } from "./typeChecks";
|
||||
import { KEYS, shouldRotateWithDiscreteAngle } from "../keys";
|
||||
import { getBoundTextElement, handleBindTextResize } from "./textElement";
|
||||
import { DRAGGING_THRESHOLD } from "../constants";
|
||||
|
@ -344,10 +344,7 @@ export class LinearElementEditor {
|
|||
selectedPoint === 0 ||
|
||||
selectedPoint === element.points.length - 1
|
||||
) {
|
||||
if (
|
||||
!isFreeDrawElement(element) &&
|
||||
isPathALoop(element.points, appState.zoom.value)
|
||||
) {
|
||||
if (isPathALoop(element.points, appState.zoom.value)) {
|
||||
LinearElementEditor.movePoints(element, [
|
||||
{
|
||||
index: selectedPoint,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue