From 90914a40bafd8c92605d0a3bca59462affaaf4f7 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Mon, 3 Feb 2025 17:23:07 -0800 Subject: [PATCH] Use canvas.low_quality flag for DOMWidget show/hide (#2413) --- src/scripts/domWidget.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/domWidget.ts b/src/scripts/domWidget.ts index d431463795..11465287e6 100644 --- a/src/scripts/domWidget.ts +++ b/src/scripts/domWidget.ts @@ -342,7 +342,7 @@ LGraphNode.prototype.addDOMWidget = function < const { offset, scale } = app.canvas.ds const hidden = - (!!options.hideOnZoom && scale < 0.5) || + (!!options.hideOnZoom && app.canvas.low_quality) || widget.computedHeight <= 0 || // @ts-expect-error Used by widgetInputs.ts widget.type === 'converted-widget' ||