Commit 72110c8
authored
This fixes #720.
At moment, microbundle does not support typescript >= 4.0, where typings Window has visualViewport exists.
So, we can't upgrade typescript to 4.0, and just add a local hack to compute function to prevent typings conflict in global Window.visualViewport interface - between this definition https://github.com/stipsan/compute-scroll-into-view/blob/v1.0.14/src/index.ts#L20 and typescript >= 4.0 definition
1 parent 7cebb40 commit 72110c8
1 file changed
+9
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 15 | | |
28 | 16 | | |
29 | 17 | | |
| |||
242 | 230 | | |
243 | 231 | | |
244 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
245 | 238 | | |
246 | 239 | | |
247 | 240 | | |
| |||
295 | 288 | | |
296 | 289 | | |
297 | 290 | | |
298 | | - | |
299 | | - | |
| 291 | + | |
| 292 | + | |
300 | 293 | | |
301 | | - | |
302 | | - | |
| 294 | + | |
| 295 | + | |
303 | 296 | | |
304 | 297 | | |
305 | 298 | | |
| |||
0 commit comments