mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-17 16:47:02 +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) {
|
onChange(value) {
|
||||||
if (value) {
|
if (value) {
|
||||||
LiteGraph.pointerListenerAdd(app.canvasEl, "move", onCanvasPointerMove);
|
LiteGraph.pointerListenerAdd(app.canvasEl, "move", onCanvasPointerMove);
|
||||||
|
window.addEventListener("click", hideTooltip);
|
||||||
} else {
|
} else {
|
||||||
LiteGraph.pointerListenerRemove(app.canvasEl, "move", onCanvasPointerMove);
|
LiteGraph.pointerListenerRemove(app.canvasEl, "move", onCanvasPointerMove);
|
||||||
|
window.removeEventListener("click", hideTooltip);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user