mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-18 23:10:16 +02:00
feat: No center snap when start is not bound
This commit is contained in:
@@ -417,9 +417,7 @@ const bindingStrategyForNewSimpleArrowEndpointDragging = (
|
|||||||
end = {
|
end = {
|
||||||
mode: isInsideBinding ? "inside" : "orbit",
|
mode: isInsideBinding ? "inside" : "orbit",
|
||||||
element: hit,
|
element: hit,
|
||||||
focusPoint: isInsideBinding
|
focusPoint: point,
|
||||||
? point
|
|
||||||
: snapToCenter(hit, elementsMap, point),
|
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
end = { mode: null };
|
end = { mode: null };
|
||||||
@@ -507,7 +505,7 @@ const bindingStrategyForSimpleArrowEndpointDragging = (
|
|||||||
current = {
|
current = {
|
||||||
element: hit,
|
element: hit,
|
||||||
mode: "orbit",
|
mode: "orbit",
|
||||||
focusPoint: snapToCenter(hit, elementsMap, point),
|
focusPoint: point,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user