mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-19 07:20:21 +02:00
@@ -335,7 +335,6 @@ export class LinearElementEditor {
|
|||||||
|
|
||||||
// Apply the point movement if needed
|
// Apply the point movement if needed
|
||||||
let suggestedBinding: AppState["suggestedBinding"] = null;
|
let suggestedBinding: AppState["suggestedBinding"] = null;
|
||||||
if (deltaX || deltaY) {
|
|
||||||
const { positions, updates } = pointDraggingUpdates(
|
const { positions, updates } = pointDraggingUpdates(
|
||||||
[idx],
|
[idx],
|
||||||
deltaX,
|
deltaX,
|
||||||
@@ -368,7 +367,6 @@ export class LinearElementEditor {
|
|||||||
app.scene,
|
app.scene,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// PERF: Avoid state updates if not absolutely necessary
|
// PERF: Avoid state updates if not absolutely necessary
|
||||||
if (
|
if (
|
||||||
@@ -481,7 +479,6 @@ export class LinearElementEditor {
|
|||||||
|
|
||||||
// Apply the point movement if needed
|
// Apply the point movement if needed
|
||||||
let suggestedBinding: AppState["suggestedBinding"] = null;
|
let suggestedBinding: AppState["suggestedBinding"] = null;
|
||||||
if (deltaX || deltaY) {
|
|
||||||
const { positions, updates } = pointDraggingUpdates(
|
const { positions, updates } = pointDraggingUpdates(
|
||||||
selectedPointsIndices,
|
selectedPointsIndices,
|
||||||
deltaX,
|
deltaX,
|
||||||
@@ -517,7 +514,6 @@ export class LinearElementEditor {
|
|||||||
app.scene,
|
app.scene,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Attached text might need to update if arrow dimensions change
|
// Attached text might need to update if arrow dimensions change
|
||||||
const boundTextElement = getBoundTextElement(element, elementsMap);
|
const boundTextElement = getBoundTextElement(element, elementsMap);
|
||||||
|
Reference in New Issue
Block a user