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

18 lines
537 B
Plaintext

import { ClientRect } from '../../types';
interface PositionalCoordinates extends Pick<ClientRect, 'top' | 'left' | 'right' | 'bottom'> {
}
export declare function getScrollDirectionAndSpeed(scrollContainer: Element, scrollContainerRect: ClientRect, { top, left, right, bottom }: PositionalCoordinates, acceleration?: number, thresholdPercentage?: {
x: number;
y: number;
}): {
direction: {
x: number;
y: number;
};
speed: {
x: number;
y: number;
};
};
export {};