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