mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Fix sentry#6530117915
This commit is contained in:
parent
dff69e9191
commit
f12f7e4b50
1 changed files with 2 additions and 0 deletions
|
@ -742,6 +742,7 @@ const handleEndpointDrag = (
|
||||||
|
|
||||||
// Calculate the moving second point connection and add the start point
|
// Calculate the moving second point connection and add the start point
|
||||||
{
|
{
|
||||||
|
startIsSpecial = arrow.startIsSpecial && globalUpdatedPoints.length > 2;
|
||||||
const secondPoint = globalUpdatedPoints[startIsSpecial ? 2 : 1];
|
const secondPoint = globalUpdatedPoints[startIsSpecial ? 2 : 1];
|
||||||
const thirdPoint = globalUpdatedPoints[startIsSpecial ? 3 : 2];
|
const thirdPoint = globalUpdatedPoints[startIsSpecial ? 3 : 2];
|
||||||
const startIsHorizontal = headingIsHorizontal(startHeading);
|
const startIsHorizontal = headingIsHorizontal(startHeading);
|
||||||
|
@ -802,6 +803,7 @@ const handleEndpointDrag = (
|
||||||
|
|
||||||
// Calculate the moving second to last point connection
|
// Calculate the moving second to last point connection
|
||||||
{
|
{
|
||||||
|
endIsSpecial = arrow.endIsSpecial && globalUpdatedPoints.length > 2;
|
||||||
const secondToLastPoint =
|
const secondToLastPoint =
|
||||||
globalUpdatedPoints[globalUpdatedPoints.length - (endIsSpecial ? 3 : 2)];
|
globalUpdatedPoints[globalUpdatedPoints.length - (endIsSpecial ? 3 : 2)];
|
||||||
const thirdToLastPoint =
|
const thirdToLastPoint =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue