mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-20 21:27:03 +08:00
fix when scaled
This commit is contained in:
parent
5254531090
commit
32a4a4f243
@ -20,7 +20,7 @@ function getClipPath(node, element, canvasRect) {
|
||||
|
||||
const bounding = selectedNode.getBounding();
|
||||
const intersection = intersect(
|
||||
{ x: (elRect.x - canvasRect.left) / scale, y: (elRect.y - canvasRect.top) / scale, width: elRect.width / scale, height: elRect.height / scale },
|
||||
{ x: (elRect.x / scale) - canvasRect.left, y: (elRect.y / scale) - canvasRect.top, width: elRect.width / scale, height: elRect.height / scale },
|
||||
{
|
||||
x: selectedNode.pos[0] + app.canvas.ds.offset[0] - MARGIN,
|
||||
y: selectedNode.pos[1] + app.canvas.ds.offset[1] - LiteGraph.NODE_TITLE_HEIGHT - MARGIN,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user