feat: Alt does not snap

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
Mark Tolmacs
2025-11-06 15:34:16 +01:00
parent 87d89aa090
commit dd70f4e00f
4 changed files with 21 additions and 10 deletions

View File

@@ -356,6 +356,7 @@ export class LinearElementEditor {
elements,
app,
event.shiftKey,
event.altKey,
);
LinearElementEditor.movePoints(element, app.scene, positions, {
@@ -520,6 +521,7 @@ export class LinearElementEditor {
elements,
app,
event.shiftKey,
event.altKey,
);
LinearElementEditor.movePoints(element, app.scene, positions, {
@@ -2058,6 +2060,7 @@ const pointDraggingUpdates = (
elements: readonly Ordered<NonDeletedExcalidrawElement>[],
app: AppClassProperties,
shiftKey: boolean,
altKey: boolean,
): {
positions: PointsPositionUpdates;
updates?: PointMoveOtherUpdates;
@@ -2104,6 +2107,7 @@ const pointDraggingUpdates = (
{
newArrow: !!app.state.newElement,
shiftKey,
altKey,
},
);