MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / computedOverflow

Function computedOverflow

scripts/smoothScroll.js:668–671  ·  view source on GitHub ↗
(el, x)

Source from the content-addressed store, hash-verified

666 : el.clientHeight + 10 < el.scrollHeight;
667 }
668 function computedOverflow(el, x) {
669 let property = x ? "overflow-x" : "overflow-y";
670 return getComputedStyle(el, "").getPropertyValue(property);
671 }
672 // typically for <body> and <html>
673 function overflowNotHidden(el, x) {
674 return computedOverflow(el, x) != "hidden";

Callers 2

overflowNotHiddenFunction · 0.85
overflowAutoOrScrollFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected