mirror of https://github.com/sveltejs/svelte
As discussed in #4233, ResizeObserver is now widely available (~90% as of 15/01/2021, [source](http://caniuse.com/?search=ResizeObserver)) so we can use it instead of a custom-built solution to listen to resizes. I also needed to add @types/resize-observer-browser because the type definition for `ResizeObserver` hasn't landed in TS yet (see microsoft/TypeScript#28502). Closes #4233.pull/5885/head
parent
8180c5dd6c
commit
36a843283c
Loading…
Reference in new issue