()
| 108 | } |
| 109 | |
| 110 | const needInputShims = () => { |
| 111 | /** |
| 112 | * iOS always needs input shims |
| 113 | */ |
| 114 | const needsShimsIOS = isPlatform(window, 'ios') && isPlatform(window, 'mobile'); |
| 115 | if (needsShimsIOS) { |
| 116 | return true; |
| 117 | } |
| 118 | |
| 119 | /** |
| 120 | * Android only needs input shims when running |
| 121 | * in the browser and only if the browser is using the |
| 122 | * new Chrome 108+ resize behavior: https://developer.chrome.com/blog/viewport-resize-behavior/ |
| 123 | */ |
| 124 | const isAndroidMobileWeb = isPlatform(window, 'android') && isPlatform(window, 'mobileweb'); |
| 125 | if (isAndroidMobileWeb) { |
| 126 | return true; |
| 127 | } |
| 128 | |
| 129 | return false; |
| 130 | }; |
no test coverage detected