litegraph.js
litegraph.js copied to clipboard
Function in button widgets is called twice
This change will be avoid twice click of button.
if (event.type === "mousemove") {break;} to if (event.type === "mousedown") {break;}
This is true. I would instead change the code to call the function only with the correct event instead of breaking on a "bad" one.
if (event.type === "mousedown"){ // or "mouseup" ?
}
hard to do the merge, the automatic gets crazy