mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 14:54:37 +00:00
Merge pull request #67 from NateScarlet/button-widget-event
fix(widget): unexpected button callback call
This commit is contained in:
1479
build/litegraph.js
1479
build/litegraph.js
File diff suppressed because it is too large
Load Diff
10075
build/litegraph.min.js
vendored
10075
build/litegraph.min.js
vendored
File diff suppressed because it is too large
Load Diff
@@ -6892,6 +6892,9 @@ LGraphCanvas.prototype.processNodeWidgets = function( node, pos, event, active_w
|
||||
switch( w.type )
|
||||
{
|
||||
case "button":
|
||||
if(event.type === 'mousemove'){
|
||||
break
|
||||
}
|
||||
if(w.callback)
|
||||
setTimeout( function(){ w.callback( w, that, node, pos ); }, 20 );
|
||||
w.clicked = true;
|
||||
|
||||
Reference in New Issue
Block a user