footprint-explainable-ui 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -915,7 +915,11 @@ function FitViewOnResize() {
915
915
  requestAnimationFrame(() => fitView({ padding: 0.3 }));
916
916
  };
917
917
  window.addEventListener("resize", handler);
918
- return () => window.removeEventListener("resize", handler);
918
+ const timer = setTimeout(handler, 50);
919
+ return () => {
920
+ window.removeEventListener("resize", handler);
921
+ clearTimeout(timer);
922
+ };
919
923
  }, [fitView]);
920
924
  return null;
921
925
  }