mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-17 14:07:00 +08:00
Hide tooltip when clicking (e.g. combo widget)
This commit is contained in:
parent
0d77f71929
commit
3b83253e04
@ -102,8 +102,10 @@ app.registerExtension({
|
||||
onChange(value) {
|
||||
if (value) {
|
||||
LiteGraph.pointerListenerAdd(app.canvasEl, "move", onCanvasPointerMove);
|
||||
window.addEventListener("click", hideTooltip);
|
||||
} else {
|
||||
LiteGraph.pointerListenerRemove(app.canvasEl, "move", onCanvasPointerMove);
|
||||
window.removeEventListener("click", hideTooltip);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user