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
235dce39
"git@developer.sourcefind.cn:chenpangpang/ComfyUI.git" did not exist on "3cd31d0e24ef939e08ece7c78d53ebe0f7e0bdbb"
Commit
235dce39
authored
Mar 14, 2023
by
pythongosssss
Browse files
Explain why animation frame used
parent
47587529
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
web/scripts/app.js
web/scripts/app.js
+2
-0
No files found.
web/scripts/app.js
View file @
235dce39
...
@@ -313,6 +313,8 @@ class ComfyApp {
...
@@ -313,6 +313,8 @@ class ComfyApp {
if
(
node
)
{
if
(
node
)
{
if
(
node
.
onDragOver
&&
node
.
onDragOver
(
e
))
{
if
(
node
.
onDragOver
&&
node
.
onDragOver
(
e
))
{
this
.
dragOverNode
=
node
;
this
.
dragOverNode
=
node
;
// dragover event is fired very frequently, run this on an animation frame
requestAnimationFrame
(()
=>
{
requestAnimationFrame
(()
=>
{
this
.
graph
.
setDirtyCanvas
(
false
,
true
);
this
.
graph
.
setDirtyCanvas
(
false
,
true
);
});
});
...
...
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