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.cjs.js
CHANGED
|
@@ -1763,6 +1763,9 @@ var useResize = function (ref, onResize, dependencies) {
|
|
|
1763
1763
|
React.useLayoutEffect(function () {
|
|
1764
1764
|
var _a;
|
|
1765
1765
|
didUnmount.current = false;
|
|
1766
|
+
if (!("ResizeObserver" in window)) {
|
|
1767
|
+
return;
|
|
1768
|
+
}
|
|
1766
1769
|
if (ref) {
|
|
1767
1770
|
resizeObserverRef.current = new ResizeObserver(function (entries) {
|
|
1768
1771
|
var newSize = ref.getBoundingClientRect();
|