diff --git a/src/contents.js b/src/contents.js index 32889d8..3effe72 100644 --- a/src/contents.js +++ b/src/contents.js @@ -526,7 +526,7 @@ class Contents { resizeObservers() { // create an observer instance this.observer = new ResizeObserver((e) => { - this.resizeCheck(); + requestAnimationFrame(this.resizeCheck.bind(this)); }); // pass in the target node