1window.scrollHelper = { 2 subscribeScroll: function (dotNetObj) { 3 let ticking = false; 4 let latestY = window.scrollY; 5 6 const reportScroll = () => { 7 dotNetObj.invokeMethodAsync("OnScroll", latestY); 8 ticking = false; 9 }; 10 11 window.addEventListener("scroll", () => { 12 latestY = window.scrollY; 13 if (!ticking) { 14 ticking = true; 15 requestAnimationFrame(reportScroll); 16 } 17 }, { passive: true }); 18 }, 19 scrollToTop: function () { 20 window.scrollTo({ 21 top: 0, 22 behavior: "smooth" 23 }); 24 } 25};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.