mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-12 03:50:06 +02:00
fix: do not snap to pointer when creating
This commit is contained in:
@@ -6016,7 +6016,10 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
this,
|
this,
|
||||||
event,
|
event,
|
||||||
this.scene.getNonDeletedElementsMap(),
|
this.scene.getNonDeletedElementsMap(),
|
||||||
{ includeSelfPoints: true },
|
{
|
||||||
|
includeSelfPoints: true,
|
||||||
|
selectedPointsIndices: [points.length - 1],
|
||||||
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
if (snapLines.length > 0) {
|
if (snapLines.length > 0) {
|
||||||
@@ -8798,7 +8801,10 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
this,
|
this,
|
||||||
event,
|
event,
|
||||||
this.scene.getNonDeletedElementsMap(),
|
this.scene.getNonDeletedElementsMap(),
|
||||||
{ includeSelfPoints: true },
|
{
|
||||||
|
includeSelfPoints: true,
|
||||||
|
selectedPointsIndices: [points.length - 1],
|
||||||
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
if (snapLines.length > 0) {
|
if (snapLines.length > 0) {
|
||||||
|
Reference in New Issue
Block a user