mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-19 19:03:51 +00:00
Make nodes easier to resize.
This commit is contained in:
parent
c66db06763
commit
4cea9aecda
@ -5880,10 +5880,10 @@ LGraphNode.prototype.executeAction = function(action)
|
|||||||
node.resizable !== false &&
|
node.resizable !== false &&
|
||||||
isInsideRectangle( e.canvasX,
|
isInsideRectangle( e.canvasX,
|
||||||
e.canvasY,
|
e.canvasY,
|
||||||
node.pos[0] + node.size[0] - 5,
|
node.pos[0] + node.size[0] - 15,
|
||||||
node.pos[1] + node.size[1] - 5,
|
node.pos[1] + node.size[1] - 15,
|
||||||
10,
|
20,
|
||||||
10
|
20
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
this.graph.beforeChange();
|
this.graph.beforeChange();
|
||||||
@ -6428,10 +6428,10 @@ LGraphNode.prototype.executeAction = function(action)
|
|||||||
isInsideRectangle(
|
isInsideRectangle(
|
||||||
e.canvasX,
|
e.canvasX,
|
||||||
e.canvasY,
|
e.canvasY,
|
||||||
node.pos[0] + node.size[0] - 5,
|
node.pos[0] + node.size[0] - 15,
|
||||||
node.pos[1] + node.size[1] - 5,
|
node.pos[1] + node.size[1] - 15,
|
||||||
5,
|
15,
|
||||||
5
|
15
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
this.canvas.style.cursor = "se-resize";
|
this.canvas.style.cursor = "se-resize";
|
||||||
|
Loading…
Reference in New Issue
Block a user