Skip to content

Commit

Permalink
fix(display_context): make panel movement checking more robust
Browse files Browse the repository at this point in the history
This fixes the display artifact with the invlerp CDF control when
toggling volume rendering on/off.
  • Loading branch information
jbms committed Apr 11, 2024
1 parent a52552e commit daf82f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/display_context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit daf82f3

Please sign in to comment.