Files
NapCatQQ/.pnpm-store/v3/files/2e/5553cdd94f0ab3f0d5a27efcc328d2c344d5abdd5fe35217dd8828cd11241ebea4418299f6430d7d2154509ccb72de2b0a596c939eafde546af00b23087d46
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

16 lines
636 B
Plaintext

var getScrollTop = function (el) {
if (el === document || el === document.documentElement || el === document.body) {
return Math.max(window.pageYOffset, document.documentElement.scrollTop, document.body.scrollTop);
}
return el.scrollTop;
};
var getScrollHeight = function (el) {
return (el.scrollHeight ||
Math.max(document.documentElement.scrollHeight, document.body.scrollHeight));
};
var getClientHeight = function (el) {
return (el.clientHeight ||
Math.max(document.documentElement.clientHeight, document.body.clientHeight));
};
export { getScrollTop, getScrollHeight, getClientHeight };