Embed PDF Viewer - Undesired Focus Scrolling on Browser Zoom
Hi, I'm using the Embed PDF Viewer API with in-line embed mode in my web application, and am observing undesirable behavior where the viewer will automatically scroll the browser page and set focus to the top of the embedded PDF in desktop browsers, even when "focusOnRendering" is explicitly set to false, upon adjusting the zoom level of the browser. This occurs when both page content and the embedded viewer are both in view, and seems to be reliably reproduced on Chrome and Edge. Even worse, on some devices such as a Windows laptop with display scaling enabled, the browser immediately automatically scrolls the page to the top of the PDF on page load without changing the browser zoom first.
This CodePen demonstrates this behavior:
Adobe Embed API: Changing browser zoom auto-scrolls PDF into focus (codepen.io)
This is undesired because the user may be zooming in to read the content that precedes the embedded PDF, but now they have to manually scroll back to it after the PDF viewer automatically scrolled. I believe this is a bug, and if it is not, can a new parameter be added to prevent this behavior? Thanks!
