MCPcopy Index your code
hub / github.com/hoothin/UserScripts / checkOverflow

Function checkOverflow

Pagetual/pagetual.user.js:9489–9491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9487
9488 let scrollTarget, body = getBody(document);
9489 let checkOverflow = ele => {
9490 return ele.scrollHeight !== ele.clientHeight && getComputedStyle(ele).overflowY !== "hidden";
9491 };
9492 if (document.documentElement.scrollTop || checkOverflow(document.documentElement)) {
9493 scrollTarget = document.documentElement;
9494 } else if (body.scrollTop || checkOverflow(body)) {

Callers 1

startAutoScrollFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected