Forum Discussion
Iframe continues scrolling after mouse release when interacting with Power BI visuals
- 2 months ago
Hi Mohd_Naim,
Thank you for the update. We understand that the issue is still under investigation. and thanks to sukhi-cloudy & DataTako for sharing valuable insights.
Since you are already using the powerbi-client SDK, could you please share the following details when available?
• The browser and version where the issue occurs (Chrome/Edge).
• Whether the issue occurs consistently or only under specific conditions, such as when dragging the scrollbar outside the iframe boundary.
• Whether the behavior occurs with all scrollable visuals or only specific visuals, such as tables or matrices.
• Whether any errors are reported in the browser console when the issue occurs. Microsoft provides guidance on using the embedded report's error event and browser console to troubleshoot embedded analytics issues.
For reference, you can also review the following Microsoft Learn documentation:
How to troubleshoot and debug your embedding code in Power BI embedded analytics | Microsoft Learn
How to handle events in a Power BI embedded analytics application | Microsoft Learn
These details may help narrow down the issue. Please keep us posted on your findings.
Thank you.
Hi,
This is a known side effect of the drag interaction crossing the iframe boundary. When you grab a scrollbar inside the report and the cursor leaves the iframe during the drag, the mouseup fires on the parent page instead of inside the iframe, so the visual never receives its "release" event and keeps thinking you're still dragging. That's why it stays stuck until you click again inside the report, which finally hands it the event it was waiting for.
The real fix is usually the embedding method rather than the report. If you're pointing a raw <iframe src="app.powerbi.com/..."> at the Service, that path isn't really supported for interactive embedding and these pointer-event quirks are exactly what it produces. Switching to the official powerbi-client JavaScript SDK (powerbi.embed()) is what solves it in practice, because the SDK manages the pointer and message handling between host page and report properly instead of leaving the browser to guess.
If you're already on the SDK and still seeing it, then handle the released event on the host side: capture mouseup at the parent document level and forward it so the embedded report knows the drag ended.
For what it's worth, if you'd rather not build and maintain the embedding layer yourself, we run an out-of-the-box embedding solution at DataTako.com that handles this pointer/event plumbing (and the viewer licensing side) for you, so it's an option if this turns into more work than it's worth. Either way, happy to help you get it sorted, just let me know how you're currently embedding and I can point you at the specific fix.
If this gets it working, please mark it as the solution so others with the same iframe behaviour find it faster.
Paco
Helping data analytics leaders distribute their reports