Forum Discussion
Powerbi embedded iframe IOS scrolling issues
- 3 months ago
Yes, Safari doesn't propagate scroll events from an iframe back to the parent page once the iframe hits its scroll boundary, unlike Chrome on Android which handles it more gracefully.
The most reliable workaround is to listen for touch events on the iframe's container in your parent page and manually handle the scroll handoff. Something like this:
javascriptconst container = document.querySelector('.dashboard-container');container.addEventListener('touchstart', (e) => {
this.touchStartY = e.touches[0].clientY;
}, { passive: true });container.addEventListener('touchmove', (e) => {
const deltaY = this.touchStartY - e.touches[0].clientY;
window.scrollBy(0, deltaY);
this.touchStartY =
Yes, Safari doesn't propagate scroll events from an iframe back to the parent page once the iframe hits its scroll boundary, unlike Chrome on Android which handles it more gracefully.
The most reliable workaround is to listen for touch events on the iframe's container in your parent page and manually handle the scroll handoff. Something like this:
javascriptconst container = document.querySelector('.dashboard-container');
container.addEventListener('touchstart', (e) => {
this.touchStartY = e.touches[0].clientY;
}, { passive: true });
container.addEventListener('touchmove', (e) => {
const deltaY = this.touchStartY - e.touches[0].clientY;
window.scrollBy(0, deltaY);
this.touchStartY =