Files
NapCatQQ/.pnpm-store/v3/files/92/fcda31a9242509aba821e8d1b5a984190577e2d8b90811c5697ffb3b2c2f4bab28657ae79de356b899f5857811682d704110765c94da2e2c61aebaadedbe38
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

18 lines
822 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getScrollTop = exports.getScrollHeight = exports.getClientHeight = void 0;
var getScrollTop = exports.getScrollTop = function getScrollTop(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 = exports.getScrollHeight = function getScrollHeight(el) {
return el.scrollHeight || Math.max(document.documentElement.scrollHeight, document.body.scrollHeight);
};
var getClientHeight = exports.getClientHeight = function getClientHeight(el) {
return el.clientHeight || Math.max(document.documentElement.clientHeight, document.body.clientHeight);
};