Retain scroll position in distiller viewer after zooming
DOM distiller viewer was run in quirks mode, where the body is the scrolling element. Later on, it was run in standard mode, where the scrolling element became document.documentElement, and the scroll positioning logic was broken. Use document.scrollingElement instead to be more standard compliant. See https://developer.mozilla.org/en-US/docs/Web/API/Document/scrollingElement Bug: 874371 Change-Id: I1a0c04f4bc50ff66a9342e9fde8e0369b79cfef1 Reviewed-on: https://chromium-review.googlesource.com/1175681 Commit-Queue: Wei-Yin Chen (陳威尹) <wychen@chromium.org> Reviewed-by:Matthew Jones <mdjones@chromium.org> Cr-Commit-Position: refs/heads/master@{#583475}
Showing
Please register or sign in to comment