Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Explain why animation frame used

pythongosssss235dce397770
diff --git a/web/scripts/app.js b/web/scripts/app.js
index 4d757adb2..8b761b9bc 100644
--- a/web/scripts/app.js
+++ b/web/scripts/app.js
@@ -313,6 +313,8 @@ class ComfyApp {
if (node) {
if (node.onDragOver && node.onDragOver(e)) {
this.dragOverNode = node;
+
+ // dragover event is fired very frequently, run this on an animation frame
requestAnimationFrame(() => {
this.graph.setDirtyCanvas(false, true);
});