react-zoom-pan-pinch 3.4.2 → 3.4.3
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 +3 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -0
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1755,6 +1755,9 @@ var useResize = function (ref, onResize, dependencies) {
|
|
|
1755
1755
|
useLayoutEffect(function () {
|
|
1756
1756
|
var _a;
|
|
1757
1757
|
didUnmount.current = false;
|
|
1758
|
+
if (!("ResizeObserver" in window)) {
|
|
1759
|
+
return;
|
|
1760
|
+
}
|
|
1758
1761
|
if (ref) {
|
|
1759
1762
|
resizeObserverRef.current = new ResizeObserver(function (entries) {
|
|
1760
1763
|
var newSize = ref.getBoundingClientRect();
|