muxinc / media-chrome

Custom elements (web components) for making audio and video player controls that look great in your website or app.
https://media-chrome.org
MIT License
1.77k stars 71 forks source link

fix: ResizeObserver loop completed with undelivered notifications (#732) #733

Closed mmvsk closed 1 year ago

mmvsk commented 1 year ago

Fixes #732 by replacing the setTimeout in the ResizeObserver callback with a debounce proxy.

It works with a debounce delay of 0ms, however if the problem arises again the delay can be increased. I think 10ms would work well as it's long enough for animations while being short enough to be unnoticeable by the end user.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
media-chrome ❌ Failed (Inspect) Sep 6, 2023 8:32am
media-chrome-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 6, 2023 8:32am