Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
4cea9aec
Commit
4cea9aec
authored
Apr 29, 2023
by
comfyanonymous
Browse files
Make nodes easier to resize.
parent
c66db067
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
web/lib/litegraph.core.js
web/lib/litegraph.core.js
+8
-8
No files found.
web/lib/litegraph.core.js
View file @
4cea9aec
...
...
@@ -5880,10 +5880,10 @@ LGraphNode.prototype.executeAction = function(action)
node.resizable !== false &&
isInsideRectangle( e.canvasX,
e.canvasY,
node
.
pos
[
0
]
+
node
.
size
[
0
]
-
5
,
node
.
pos
[
1
]
+
node
.
size
[
1
]
-
5
,
1
0
,
1
0
node.pos[0] + node.size[0] -
1
5,
node.pos[1] + node.size[1] -
1
5,
2
0,
2
0
)
) {
this.graph.beforeChange();
...
...
@@ -6428,10 +6428,10 @@ LGraphNode.prototype.executeAction = function(action)
isInsideRectangle(
e.canvasX,
e.canvasY,
node
.
pos
[
0
]
+
node
.
size
[
0
]
-
5
,
node
.
pos
[
1
]
+
node
.
size
[
1
]
-
5
,
5
,
5
node.pos[0] + node.size[0] -
1
5,
node.pos[1] + node.size[1] -
1
5,
1
5,
1
5
)
) {
this.canvas.style.cursor = "se-resize";
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment