David J. Bradshaw
David J. Bradshaw
Finally have time to look at this, but I will need a simple case added to the examples to be able to test it.
I'm working on v5 #1212 which changes how mutationObserver is used. Would be interested to know if it helps with your issue.
Yep, sorry forgot to update.
Looks like your using a very old version of this library
Just looking at this again and I think your workaround, is the solution. I've added an example into the new version 5 API documentation and the troubleshooting guide. https://iframe-resizer.com/api/parent/#onscroll https://iframe-resizer.com/troubleshooting/#srcolling-does-not-scroll-to-where-i-want-it
From the log message ``` Check iFrameResizer.contentWindow.js has been loaded in iFrame ```
btw in v5 it is now slightly cleaner, as `onScroll()` now also passes `top` and `left` ```js const [iframe] = iframeResizer({ scrollCallback: ({ top }) => { window.scrollTo({ top });...
Yes every page you load into the iframe
Would welcome a PR
You can disable it with `scrolling: 'omit'` option