Skip to content

Commit 7cead43

Browse files
committed
Fix node position on alt+drag
1 parent ee0c5f1 commit 7cead43

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/litegraph/src/LGraphCanvas.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2388,7 +2388,9 @@ export class LGraphCanvas
23882388
node &&
23892389
this.allow_interaction
23902390
) {
2391-
const items = this._deserializeItems(this._serializeItems([node]), {})
2391+
const items = this._deserializeItems(this._serializeItems([node]), {
2392+
position: node.pos
2393+
})
23922394
const cloned = items?.created[0] as LGraphNode | undefined
23932395
if (!cloned) return
23942396

0 commit comments

Comments
 (0)