fix:Highlight flicker

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
Mark Tolmacs
2025-09-10 17:34:19 +02:00
parent d4680df3d9
commit 9ac0f8231c

View File

@@ -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);