Internet Browser: Difference between revisions
Tonyzamboney (talk | contribs) Corrected screen size info and document example |
Tonyzamboney (talk | contribs) m Correction correction |
||
Line 963: | Line 963: | ||
document.addEventListener("scroll", function () { | document.addEventListener("scroll", function () { | ||
window.scrollTo(40, 215); | window.scrollTo(40, 215); | ||
} | }); | ||
This automatically resets the position if the user accidentally scrolls the page. Zooming should probably also be disabled by adding <code>user-scalable=no</code> to the <meta> viewport element. | This automatically resets the position if the user accidentally scrolls the page. Zooming should probably also be disabled by adding <code>user-scalable=no</code> to the <meta> viewport element. |