From daf82f3ad4af2007e96faca35143cd5ec986bf60 Mon Sep 17 00:00:00 2001 From: Jeremy Maitin-Shepard Date: Thu, 11 Apr 2024 12:10:48 -0700 Subject: [PATCH] fix(display_context): make panel movement checking more robust This fixes the display artifact with the invlerp CDF control when toggling volume rendering on/off. --- src/display_context.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/display_context.ts b/src/display_context.ts index aeab87fac..e71e77670 100644 --- a/src/display_context.ts +++ b/src/display_context.ts @@ -432,7 +432,7 @@ export class DisplayContext extends RefCounted implements FrameNumberCounter { new IntersectionObserver(this.resizeCallback, { root: this.container, rootMargin: margin, - threshold: [0.99, 1], + threshold: [0.93, 0.94, 0.95, 0.96, 0.97, 0.98, 0.99, 1], })); intersectionObserver.observe(element); }