1(function() { 2 'use strict'; 3 let horizontalScrollActive = false; 4 let activeScrollCount = 0; 5 let overscrollStyleElement = null; 6 window.setHorizontalScrollActive = function(active) { 7 if (active) { 8 activeScrollCount++; 9 } else { 10 activeScrollCount = Math.max(0, activeScrollCount - 1); 11 } 12 const newActiveState = activeScrollCount > 0; 13 if (newActiveState !== horizontalScrollActive) { 14 horizontalScrollActive = newActiveState; 15 if (horizontalScrollActive) { 16 if (!overscrollStyleElement) { 17 overscrollStyleElement = document.createElement('style'); 18 overscrollStyleElement.textContent = 'html, body { overscroll-behavior-x: none; }'; 19 document.head.appendChild(overscrollStyleElement); 20 } 21 } else { 22 if (overscrollStyleElement) { 23 document.head.removeChild(overscrollStyleElement); 24 overscrollStyleElement = null; 25 } 26 } 27 } 28 }; 29})();
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.