In the PDF viewer plugin, use offsetTop to scroll pages instead of
window.scrollIntoView, because that can also scroll the parent of the
iframe the viewer is in.