mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-21 15:24:09 +00:00
Improve hitbox for group resize (#277)
Now the same as the visual area Co-authored-by: Chenlei Hu <huchenlei@proton.me>
This commit is contained in:
@@ -2076,8 +2076,7 @@ export class LGraphCanvas {
|
||||
this.dragging_rectangle = null
|
||||
}
|
||||
|
||||
const dist = distance([e.canvasX, e.canvasY], [group.pos[0] + group.size[0], group.pos[1] + group.size[1]])
|
||||
if (dist * this.ds.scale < 10) {
|
||||
if (group.isInResize(e.canvasX, e.canvasY)) {
|
||||
this.resizingGroup = group
|
||||
} else {
|
||||
const f = group.font_size || LiteGraph.DEFAULT_GROUP_FONT_SIZE
|
||||
|
||||
Reference in New Issue
Block a user