Is it possible to programatically adjust the zoomed in viewport on a mobile device with Javascript?
The motivation for this question is as follows: In our web app, users review documents. There are a few locations of interest throughout the document and we guide users through these locations by placing a popup beside a location that contains a description and a "Next" button to navigate them to the next location.
On desktop, this works fine because the whole document is visible and the popup draws their attention to the location of interest. However, on mobile, users will zoom in to get a better look at a particular location and upon clicking "Next" we would like to shift the zoomed-in mobile viewport to the next location.
I've tried playing around with window.scrollTo, but this doesn't work since it operates on the full zoomed-out viewport. Is it possible to do what I'm describing via Javascript?