@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.cjs.js +4 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
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
|
-
|
|
2044
|
-
|
|
2043
|
+
const el = containerRef.current;
|
|
2044
|
+
if (!el) return;
|
|
2045
|
+
el.addEventListener("scroll", onScroll, { passive: true });
|
|
2045
2046
|
return () => {
|
|
2046
|
-
|
|
2047
|
+
el.removeEventListener("scroll", onScroll);
|
|
2047
2048
|
if (rAFRef.current) cancelAnimationFrame(rAFRef.current);
|
|
2048
2049
|
};
|
|
2049
2050
|
}, [virtualizer, images]);
|