Commit 235dce39 authored by pythongosssss's avatar pythongosssss
Browse files

Explain why animation frame used

parent 47587529
......@@ -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);
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment