iou90 hace 4 años
padre
commit
6650397924
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2
    1
      autoHeightWebView/index.js

+ 2
- 1
autoHeightWebView/index.js Ver fichero

@@ -48,11 +48,12 @@ const AutoHeightWebView = React.memo(
48 48
       const { height, width, zoomedin } = data;
49 49
       !scrollEnabled && scrollEnabledWithZoomedin && setScrollable(!!zoomedin);
50 50
       const { height: previousHeight, width: previousWidth } = size;
51
-      isSizeChanged({ height, previousHeight, width, previousWidth }) &&
51
+      !zoomedin && webView.current.zoomedin === zoomedin && isSizeChanged({ height, previousHeight, width, previousWidth }) &&
52 52
         setSize({
53 53
           height,
54 54
           width
55 55
         });
56
+      webView.current.zoomedin = zoomedin;
56 57
     };
57 58
 
58 59
     const currentScrollEnabled = scrollEnabled === false && scrollEnabledWithZoomedin ? scrollable : scrollEnabled;