fix: do not snap to pointer when creating

This commit is contained in:
Ryan Di
2025-08-04 12:33:40 +10:00
parent 6e968324fb
commit dceaa53b0c

View File

@@ -6016,7 +6016,10 @@ class App extends React.Component<AppProps, AppState> {
this,
event,
this.scene.getNonDeletedElementsMap(),
{ includeSelfPoints: true },
{
includeSelfPoints: true,
selectedPointsIndices: [points.length - 1],
},
);
if (snapLines.length > 0) {
@@ -8798,7 +8801,10 @@ class App extends React.Component<AppProps, AppState> {
this,
event,
this.scene.getNonDeletedElementsMap(),
{ includeSelfPoints: true },
{
includeSelfPoints: true,
selectedPointsIndices: [points.length - 1],
},
);
if (snapLines.length > 0) {