We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e3e909 commit 6dbdb9bCopy full SHA for 6dbdb9b
src/scripts/app.ts
@@ -2957,7 +2957,7 @@ export class ComfyApp {
2957
const rect = this.canvasContainer.getBoundingClientRect()
2958
const containerOffsets = [rect.left, rect.top]
2959
return _.zip(pos, this.canvas.ds.offset, containerOffsets).map(
2960
- ([p, o1, o2]) => p / this.canvas.ds.scale - o1 - o2
+ ([p, o1, o2]) => (p - o2) / this.canvas.ds.scale - o1
2961
) as Vector2
2962
}
2963
0 commit comments