/** * Returns the one of `` or `` which seems to be * responsible for "scrolling the page". Prefers ``. */ declare const getPageScrollElm: (customWindow?: Window) => HTMLElement; export default getPageScrollElm; /** * Returns the one of `` or `` which seems to be * responsible for "scrolling the page". Prefers ``. */ /** / const getPageScrollElm = (customWindow: Window = window) => { const { document } = customWindow; const { body, documentElement } = document; // body.insertAdjacentHTML( // 'afterbegin', // `
${JSON.stringify(
    // 		{
    // 			bodyCH: body.clientHeight,
    // 			bodySH: body.scrollHeight,
    // 			htmlCH: documentElement.clientHeight,
    // 			htmlSH: documentElement.scrollHeight,
    // 		},
    // 		null,
    // 		2
    // 	)}
` // ); if (body.clientHeight !== body.scrollHeight) { return body; } return documentElement; }; export default getPageScrollElm; /**/