@zero-library/common 2.3.8 → 2.3.9

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.
package/dist/index.esm.js CHANGED
@@ -2040,10 +2040,11 @@ var PdfImagePreview_default = ({ fileUrl, pageNo, scale = 1, isHasThumbnails = t
2040
2040
  });
2041
2041
  }, 300);
2042
2042
  useEffect(() => {
2043
- if (!containerRef.current) return;
2044
- containerRef.current.addEventListener("scroll", onScroll, { passive: true });
2043
+ const el = containerRef.current;
2044
+ if (!el) return;
2045
+ el.addEventListener("scroll", onScroll, { passive: true });
2045
2046
  return () => {
2046
- containerRef.current.removeEventListener("scroll", onScroll);
2047
+ el.removeEventListener("scroll", onScroll);
2047
2048
  if (rAFRef.current) cancelAnimationFrame(rAFRef.current);
2048
2049
  };
2049
2050
  }, [virtualizer, images]);